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

Popular posts from this blog

asp.net mvc - Cannot display error message on Editor or EditorFor -

Reliable way to get Windows Version from registry -

python - No exponential form of the z-axis in matplotlib-3D-plots -