I have an application that is going to switch to a UISplitView (inside another view in general):
- (void) switchToMyDayView {
NSLog(@"Show My Day Screen");
if (self.myDayController.view.superview == nil) {
if (self.myDayController == nil) {
MyDayController *myController = [[MyDayController alloc] initWithNibName:@"MyDay" bundle:nil];
self.myDayController = myController;
[myController release];
}
[homeScreenController.view removeFromSuperview];
[self.view insertSubview:self.myDayController.view atIndex:0];
}
}
What is done on the main navigation screen
Now MyDayController has an XIB called MyDay.xib, which has the following elements:
File Owner: MyDayController
First responder: UIResponder
Controller split view
So I need a few more components, do I need a UITableViewController and a UISplitViewControllerDelegate right?
I was going to just implement these protocols in MyDayController, is that such a standard?
So, after the code above, I get an error:
- [UIViewController _loadViewFromNibNamed: bundle:] loaded "MyDay", but the exit viewpoint was not set.
, UISplitViewController? , UISplitViewController view, / IB, ?