我想从一个xib到另一个,我使用TabBar。 当我从xib移动到xib与PresentModalViewController
我失去了TabBar。PresentModalViewController不显示TabBar
当我用这种方式,它失败(如力接近的android):
FirstViewController *fvc = [[FirstViewController alloc]initWithNibName:@"FirstViewController" bundle:nil];
[fvc setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal];
fvc.userSelectedLatitude = saveLatitude;
fvc.userSelectedLongitude = saveLongtitude;
UITabBarController *tabControl = [[UITabBarController alloc] initWithNibName:fvc bundle:nil];
[self presentModalViewController:tabControl animated:NO];
当我使用:
UITabBarController *tabControl = [[UITabBarController alloc] initWithNibName:@"FirstViewController" bundle:nil];
我得到黑屏的TabBar。
因为这一切都失败我猜这不是正确的方法。 那么,正确的做法是什么?
我想把它与标签栏 – 2013-02-19 08:54:25
看到答案更新 – thxou 2013-02-19 11:29:42
它把我带到正确的地方,但只显示正确的形象与特定的标签栏;没有标题,也没有其他按钮。 编辑:好的,我加了控制器的其余部分,现在好了,谢谢! – 2013-02-19 17:09:39