如何初始化和创建 UITableViewController 的对象?
How to initialise and create object of UITableViewController?
我想创建 UITableViewController 的对象并想将值从 ViewController 传递到 UITableViewController。但它给出了 "UITableViewController is not key-value coding-compliant for the key superclass." 这样的错误
我试过了,但没有用:
[[MytableViewController alloc] initWithNibName:[[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"MytableViewController_identifier"] bundle:[NSBundle mainBundle]];
就用
MytableViewController *mtvc = (MytableViewController *)[[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"MytableViewController_identifier"];
我想创建 UITableViewController 的对象并想将值从 ViewController 传递到 UITableViewController。但它给出了 "UITableViewController is not key-value coding-compliant for the key superclass." 这样的错误 我试过了,但没有用:
[[MytableViewController alloc] initWithNibName:[[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"MytableViewController_identifier"] bundle:[NSBundle mainBundle]];
就用
MytableViewController *mtvc = (MytableViewController *)[[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"MytableViewController_identifier"];