简体   繁体   中英

how to create the layout (attached as image) using UITableViewController

i am very much confused that how to create 这个

Using UITableViewController or another technique

When user tap on any row it should expand

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

在此处输入图片说明

在此处输入图片说明

do u want in this way

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.

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM