I have removed the "detail" navigationController from the "master-detail" template to reconnect it correctly to a tabBarController and move the "detail" viewController to the first tab.
Then I got this error:
2014-01-07 21:11:20.364 master-detail[3033:70b] -[UITabBarController topViewController]
: unrecognized selector sent to instance 0x9e46e70
2014-01-07 21:11:20.366 master-detail[3033:70b] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITabBarController topViewController]:
unrecognized selector sent to instance 0x9e46e70'
So I replace this line in function "application - didFinishLaunchingWithOptions": ...
UINavigationController *navigationController = [splitViewController.viewControllers lastObject];
For:
UITabBarController *tabBarController = [splitViewController.viewControllers lastObject];
UINavigationController *navigationController = tabBarController.viewControllers[0];
But still:
2014-01-07 20:59:38.377 EngLogBook[2955:70b] -[elbDetailViewController topViewController]
: unrecognized selector sent to instance 0x8d86ff0
2014-01-07 20:59:38.380 EngLogBook[2955:70b] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[elbDetailViewController topViewController]
: unrecognized selector sent to instance 0x8d86ff0'
What's wrong?
For both iPad and iPhone storyboard. iPhone work just great but iPad is messy.