Make read more button in tableview cell

I have a simple Tableview which have dynamic cells

foreach cell have 3 elements ( question as UILabel - Answer as UITextView - readmore as UIButton )

Iam just need to show only 2 lines from the Answer in every cell and when i click readmore button change the height of the cell dynamicly depends on the answer textview characters .

and here's my calling table cell Method :

func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {             tableCell = myTable.dequeueReusableCellWithIdentifier("fqaCell") as! fqaTableViewCell              myTable.estimatedRowHeight = 100             myTable.rowHeight = 100                  return tableCell!         } 

Replay

Category: ios Time: 2016-07-30 Views: 3

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.184 (s). 12 q(s)