-1

I have simple UITableView and I want to show word meaning after click on cell. After clicked on the Cell it expend and display word meaning, close it back when click on Cell again.

Please help me to do it.

Very thanks !!

enter image description here

Mab KaaKoo
  • 124
  • 1
  • 6
  • 19
  • What I have done before I just retrieved data from database and load them into tableview. And I don't know how to implement when click on UItableViewCell to expend and close it when click on cell again.!! One more thing, What to use inside the UITableViewCell so that i can display as in the picture? Thank – Mab KaaKoo Nov 23 '13 at 12:12
  • To display the image you will need a `UIImageView`. You will have to put code in the `- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath` – logixologist Nov 24 '13 at 06:16
  • Oh, what I mean was I want to know how to implement to display word meaning to look like the picture i uploaded above? Because I don't know whether to use UIWebview or other view inside the cell!! Please help me!! Thank you!! – Mab KaaKoo Nov 24 '13 at 08:04
  • it depends on how you are getting those special characters. I assumed you want an image. Just use a `UILabel`. Set a boolean variable in the cell click event wether its supposed to be expanded or not. – logixologist Nov 24 '13 at 08:07

1 Answers1

1

Use to two UIViews

  1. One for detailsView of Base parent in Catalog Navigation Controller

  2. Second one for child for detailsView class. It have UITableViewController

When user click the tableview cell you should animated child to low position and display the parent background

codercat
  • 22,159
  • 9
  • 58
  • 84
  • I'm new in objective c. Would you please give me more and more sample? Thank – Mab KaaKoo Nov 23 '13 at 09:12
  • This will help you out: http://stackoverflow.com/questions/3069339/how-to-dynamically-resize-uitableviewcell-height. Its a different problem but it shows you how to resize your cell dynamically. – logixologist Nov 24 '13 at 06:19