怎么在UITableView中使用 static cells 而不用 Storyboards ?

,

原项目没有使用storyboards,但是现在发现storyboard的static cell很好用,怎么才能用上呢?

Static table view cells 只在使用storyboards是才可用.所以还是只能创建UIStoryBoard文件于single view controller ,并在其中创建tableviewcontroller,设置static cell……….

UIStoryboard *tableViewStoryboard = [UIStoryboard storyboardWithName:@"your storyboard" bundle:nil]; 


CustomViewController = [tableViewStoryboard instantiateViewControllerWithIdentifier:@"custom identifier"];

然后你可以 present 这个 View Controller在你的app里了

不要说我文不对题,没办法,还是要用storyboard….但是改动不大…反正这是解决了我的问题