Iphone 当我进行转换时,UITabBarController消失

Iphone 当我进行转换时,UITabBarController消失,iphone,objective-c,uitabbarcontroller,Iphone,Objective C,Uitabbarcontroller,我的应用程序是基于UITabBarController的。 TestAppDelegate.h @interface TestAppDelegate : NSObject <UIApplicationDelegate, UITabBarControllerDelegate> { Facebook *facebook; } @property (nonatomic, retain) IBOutlet UIWindow *window; @property (nonatomic

我的应用程序是基于UITabBarController的。 TestAppDelegate.h

@interface TestAppDelegate : NSObject <UIApplicationDelegate, UITabBarControllerDelegate>
{
    Facebook *facebook;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UITabBarController *tabBarController;
@property (nonatomic, retain) Facebook *facebook;
@end

但是,当视图转换到fromViewController时,选项卡栏会去映射。

A应该覆盖
UITabBarContorller
。可以假定
FormViewController
视图是临时显示的表单吗?(而不是作为NavigationController中视图层次结构的一部分)。换句话说,在查看
FormViewController
时是否有必要查看
选项卡栏
?@tarheel不一定,但当我想使用UITABBARCONTORLER返回FirstViewController时,如果我使用模态视图控制器,我将看不到UITABBARCONTORLER?@Medhi 1)您使用的是XIB还是故事板?2) 我知道您从
FirstViewController
FormViewController
的转换是什么,但是您能发布从
FormViewController
FirstViewController
的代码吗?@tarheel我使用xib界面。我还没有编写代码,但是如果我使用[self dismissModalViewControllerAnimated:YES];它起作用了。但是我想做一个多模式的视图控制器转换,像这样,从FirstViewController到FormViewController再到。。。到另一个ViewController到第一个ViewController。因此,如果我解除ModalViewController激活,它会将我转移到firstViewController或以前的模型?我希望你能理解me@Medhi好的,现在我看到它不仅仅是一个简单的模态视图。为什么不将NavigationController(用于FormViewController->anotherViewController)放在选项卡栏项中,并将FirstViewController作为单独的选项卡栏项?
FormViewController *formViewController =[[FormViewController alloc]initWithNibName:@"FormViewController" bundle:nil];
formViewController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:formViewController animated:YES];