ios - UITableViewCell with dynamic content and dynamic row height -
ios - UITableViewCell with dynamic content and dynamic row height -
i have table view similar below. each question can contain dynamic no of answers , hence cell height can changed. need avoid writing manual coding much possible(creating button , labels programmatically , add together tableview contentview) , prefer using xib's , interface builder. whats best possible way this?
sounds me easiest solution assign each numbered item section , implement each collection of options rows. doing not require dynamic heights rows, although may required sections depending on content , desired look. either way, result trivial amount of work required implement you're looking for.
you can design each cell in ib so:
register table view:
[self.tableview registernib:[uinib nibwithnibname:@"yoursubclass" bundle:nil] forcellreuseidentifier:@"cell"]; and implement uitableviewdatasource , uitableviewdelegate methods, pointed out @goodsp33d. these methods required tell table view dynamic content. there no way in ib alone.
ios objective-c uitableview
Comments
Post a Comment