Wednesday, June 12, 2013

UITableViewController settings

Declare a class that inherits from UITableViewCell and add a UILabel outlet. In CMyCell class, you may write some customized code. For example, when the view controller passing the data to the cell, the cell will display different controls based on the data.


Then, switch to the Storyboard, choose the"cell view" and set it's class name to "CMyCell".



Drag the label control to the "mainLabel" as shown below:



No comments:

Post a Comment