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

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

SQL Server - MyCTE query based on 24 hour period (next day) -

php - Using str_replace to translate a MySQL Table in html -