문제

I managed to expand my cell (after many tries) as you can see in my pic. enter image description here

but what I really want is something like this:

enter image description here

as you can see when the user click on description the cell expand showing the content: enter image description here

Can please somebody tell me where I can find all the info to do that. (I struggling to find them). thank you very much!!!!!!

도움이 되었습니까?

해결책

You can try apple's source code in your application- http://developer.apple.com/library/ios/#samplecode/TableViewUpdates/Introduction/Intro.html

or you can fallow this blog -

http://www.cocoanetics.com/2011/03/expandingcollapsing-tableview-sections/

and you need to add custom UITableViewCell design as per your need.

다른 팁

Change the height of the cell in tableView:heightForCellAtIndexPath:, change the cell layout in tableView:cellForRowAtIndexPath: and call [[self tableView] reloadData];.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top