ios - UITableViewCell with dynamic content and dynamic row height -
I have the same view as a table view Each question can have a dynamic number of answers and hence the height of the cell can be changed. I need to avoid manual coding as much as possible (to create programming buttons and label programs and to add to the TableView content view) and do everything with XIB and interface builder What is the best way to do this? < I like the easiest solution to think that each numbered object is allocated in one section and each collection can be applied as rows. . To do this, the dynamic heights for rows will not be required, though it may be necessary for sections on your content and desired look. Either way, the results you are looking for are essential to implement a trivial amount of work. You can design each room like the IB: Register it with table view: and
[self.tableView registerNib: [UINib NibWithNibName: @ "YourSubclass" bundle: zero] forCellReuseIdentifier: @ "cell"] ; Apply
UITableViewDataSource and
UITableViewDelegate methods, as indicated by @GoodSp33d. These methods are necessary to tell the table view about your dynamic content so there is no way to do this alone in IB.
Comments
Post a Comment