Farlanki

UITableViewController setDataController:unrecognized selector sent to instance

字数统计: 31阅读时长: 1 min
2015/03/04 Share

原因是把UITableViewController嵌入UINavigationController后,

1
UITableViewController *dc = [segue destinationViewController];

没有更改,更改后:

1
UINavigationController *dc = [segue destinationViewController];

1
DetailViewController *DetaiView = [dc topViewController];

取得UITableViewController

CATALOG