views:

44

answers:

1

alt text

Click the header section(or whatever it calls) will unfold the relative subcells,and the left triangle get rotated.

I have no idea how to code this.Is there anyone help me? Any code snippets would be great help.Thanks a lot.

+3  A: 

That is a UITableView. You will need to add transparent buttons or a similar UIControl to the section headers to trap the tap events and then load the cells underneath

Run Loop
The section headers' positions are not fixed,that way you said would require to recaculate the position everytime you tap the header section.It is too complicated,is there other elegant way?Thanks though.
aquaibm
UIKit should take care of the positioning automatically as long as you add the controls as subviews inside the section headers.
BoltClock
Thanks,I will try that.
aquaibm