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

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

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -