ios - Template for UITableViewCell without nib files or storyboard -
i want separate code decide how cell display uitableviewcell
class reuse or switch template in runtime. this:
-(void)settemplate:(mytemplate *)template { [self.productname setstylefrom:template.mainlabel]; .... }
and don't want use nib files or storyboard, code only.
thank you.
you can use prototype cell if don't want add cell through .xib or class derived uitableview cell
click link prototype cell http://www.raywenderlich.com/50308/storyboards-tutorial-in-ios-7-part-1
Comments
Post a Comment