i managed using a SplitViewController in a TabBarApplication. The problem now is, trying to start the Application (the SplitViewController is the first View in my TabbarApp) in Landscape mode the Detail View gets not loaded. Starting it in Portrait works fine, also after pushing my iPad to Landscape after starting in Portrait.
Here 2 Links:
Starting in Portrait, switching to Landscape
i've modified the willShowViewController
method, because i couln't even start it in landscape
- (void)splitViewController: (UISplitViewController*)svc willShowViewController:(UIViewController *)aViewController invalidatingBarButtonItem:(UIBarButtonItem *)barButtonItem {
NSMutableArray *items = [[toolbar items] mutableCopy];
//XLog("second: %i",[items count]);
if([items count] > 0) {
[items removeObjectAtIndex:0];
[toolbar setItems:items animated:YES];
}
[items release];
self.popoverController = nil;
}
the if query prevents my app from crashing in landscape.
i have no idea why my detailviewcontroller doesn't show up and my rootviewcontroller of the splitview shows up over the complete width.
any ideas?
thanks!