小编dan*_*ood的帖子

UIModalTransitionStylePartialCurl与UITabBarController

这个问题在这里已经被问了很多,但据我所知,还有待全面回答.

我有UITabBarController一个UINavigationController作为根VC的标签之一,其本身就具有MKMapView作为其根VC.我想要的行为是让地图部分向上卷曲,同时保留标签栏(类似于地图应用).

到目前为止,我设法完成的工作是整个视图卷曲,这不是很好.

我看到的解决方案是将hidesBottomBarWhenPushed属性设置为NO,这有意义,但这似乎不起作用(除非我做错了).

为清楚起见,我的代码如下:

MyVC *aView = [MyVC init];
aView.modalTransitionStyle = UIModalTransitionStylePartialCurl;
aView.hidesBottomBarWhenPushed = NO;
Run Code Online (Sandbox Code Playgroud)

对于演示部分,我尝试了下面的两个替代方案,这两个方案似乎都不起作用:

[self presentModalViewController:updateStatus animated:YES];
[[self navigationController] presentModalViewController:updateStatus animated:YES];
Run Code Online (Sandbox Code Playgroud)

任何帮助非常感谢.

iphone uitabbarcontroller iphone-sdk-3.0 mkmapview ios4

6
推荐指数
1
解决办法
2147
查看次数