Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 新视图动画和重叠选项卡栏_Iphone_Uitabbar_Navigationcontroller_Animated - Fatal编程技术网

Iphone 新视图动画和重叠选项卡栏

Iphone 新视图动画和重叠选项卡栏,iphone,uitabbar,navigationcontroller,animated,Iphone,Uitabbar,Navigationcontroller,Animated,我有一个选项卡,在一个viewController中有一个按钮。当用户按下按钮时,我想让带有tableView作为rootView的navController视图显示动画。 但是导航栏上方有一个小的空条纹 -(void)pressButton{ UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:tableViewController];

我有一个选项卡,在一个viewController中有一个按钮。当用户按下按钮时,我想让带有tableView作为rootView的navController视图显示动画。
但是导航栏上方有一个小的空条纹

-(void)pressButton{
    UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:tableViewController];
    [[self view] addSubview:[navController view]];
}
像这样的。。。
如果新视图与选项卡栏重叠,效果会更好…

我把这个问题发得太快了。。。。答案如下:

-(void)pressButton{
   UINavigati.....
   [self presentModalViewController:navController animated:YES];
   [navController release];
}