我通过 Cocoa Matter 解决方案解决了这个问题,谢谢
现在形成上述解决方案,我增强了解决方案,现在问题解决了。
以下是解决方案 .h 文件的代码
@property(nonatomic,retain)UISplitViewController *splitController;
.m 文件
UIViewController *viewController5 = [[searchDetail alloc] initWithNibName:@"searchDetail" bundle:nil];
delegate.tabBarController.viewControllers = [NSArray arrayWithObjects:viewController1, viewController2, navForLogin, navForContact, viewController5, nil];
SearchVctr *viewController1 = [[SearchVctr alloc] initWithNibName:@"SearchVctr" bundle:nil];
FavouriteVctr *viewController2 = [[FavouriteVctr alloc] initWithNibName:@"FavouriteVctr" bundle:nil];
self.splitController = [[UISplitViewController alloc] init];
[self.splitController setViewControllers:[NSArray arrayWithObjects:viewController1, viewController2, nil]];
self.splitController.delegate = self;
viewController5.view=self.splitController.view;
delegate.tabBarController.selectedIndex = 4;
delegate.imgV.image=[UIImage imageNamed:[NSString stringWithFormat:@"t4_ipad.png"]];
delegate.tabBarController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
delegate.self.imgV.frame=CGRectMake(0, 0, 1024, 48);
[self presentModalViewController:delegate.tabBarController animated:YES];
谢谢回复,