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?

Enter image details here

< 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: Enter image details here

Register it with table view:

  [self.tableView registerNib: [UINib NibWithNibName: @ "YourSubclass" bundle: zero] forCellReuseIdentifier: @ "cell"] ; Apply   

and 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

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -