一、不使用storyboard做UI架构的app如何使用storyboard。
例如用到一个带static cell的界面。content的static cell属性是storyboard才有的。添加一个UIStoryboard文件,放一个单独的UIViewcontroller,设置class类型。用以下代码创建实例,就可以像使用普通viewcontroller那样了。可以在界面上面放置UITableview,设置为static cell。
UIStoryboard *tableViewStoryboard = [UIStoryboard storyboardWithName:@"your storyboard" bundle:nil];
CustomViewController = [tableViewStoryboard instantiateViewControllerWithIdentifier:@"custom identifier"];
二、UITableview的rowheight和cell的rowheight的优先级如何?
On dynamic cells, rowHeight
set on the UITableView always overrides the individual cells' rowHeight.
But on static cells, rowHeight
set on individual cells can override UITableView's.