0

i am very much confused that how to create this

Using UITableViewController or another technique

When user tap on any row it should expand

Hiren
  • 12,720
  • 7
  • 52
  • 72
Ali
  • 10,774
  • 10
  • 56
  • 83

5 Answers5

1

i will be easy using uitableview if u need any more help be clear bout the question

enter image description here

enter image description here

do u want in this way

  • when i tap on any row , it should expand – Ali Feb 15 '12 at 05:45
  • Take two arrays one for headers an keep it header section and set one method after click on section header call that method and show the cells of that particular header description –  Feb 15 '12 at 06:00
1

You could create custom section headers with UIButton as the background for the header. The entire table will now comprise of headers only. By clicking on the button, you can add rows to the table which will give the expansion effect.

Vidya Murthy
  • 530
  • 1
  • 8
  • 22
1

see this tutorial. it is about drop-down tableview

https://github.com/floriankrueger/iOS-Examples--UITableView-Combo-Box/zipball/master

Hector
  • 3,909
  • 2
  • 30
  • 46
0

I found this thread about it : Present a UITableView as drop-down list using the iOS SDK

The dropdown-box is not default implemented in the IOS SDK

Community
  • 1
  • 1
Maarten Kesselaers
  • 1,141
  • 2
  • 8
  • 19
0

you have to create collapse table view and set the background color property according to your requirement. for collapse table view refer this

1) Collapse TableView
2) Collapse Table

check out the Apple library example apple developer

Hiren
  • 12,720
  • 7
  • 52
  • 72