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!         } 


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

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

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