我有一个UITabBarController默认视图控制器的位置UINavigationController.我希望能够在我推送某个视图时隐藏UITabBarController的UITabBar UINavigationController.
我试过添加:
delegate.tabBarController.hidesBottomBarWhenPushed = YES;
Run Code Online (Sandbox Code Playgroud)
在我UINavigationController之前我推动视图,但这似乎没有做到这一点.
关于我应该做什么或者是否可能的任何提示?提前致谢!
我有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创建了一个照片库.现在我想将它添加到我的TabBar项目中.我已经听说过,Three20不支持XIB,所以我将整个标签栏设置改为以编程方式.我想我离最终的解决方案并不太远.
我能够让照片库在一个标签中工作,但没有功能(点击图片 - >打开,等等).页面顶部没有导航,可以引导您进入详细图像页面.当我从app delegate中的didFinishLaunchingWithOptions-method中删除它时,我遇到了这个问题:
// Override point for customization after application launch
TTNavigator* navigator = [TTNavigator navigator];
TTURLMap* map = navigator.URLMap;
[map from:@"demo://album" toViewController: [AlbumController class]];
[navigator openURLAction:[TTURLAction actionWithURLPath:@"demo://album"]];
return YES;
Run Code Online (Sandbox Code Playgroud)
我不得不将其删除,否则整个标签栏都不会显示.照片库使用整个屏幕.我不确定它是否未显示或未加载.我也尝试过:
tabbar.hidesBottomBarWhenPushed = NO;
Run Code Online (Sandbox Code Playgroud)
但那根本不起作用.我试图在没有结果的情况下将TTNavigator代码添加到AlbumController本身的loadView(),viewDidLoad()和init().有谁知道我必须把它放在哪里,以使其工作?
我的AlbumController.h:
#import <Foundation/Foundation.h>
#import <Three20/Three20.h>
@interface AlbumController : TTThumbsViewController {
// images
NSMutableArray *images;
// parser
NSXMLParser * rssParser;
NSMutableArray * stories;
NSMutableDictionary * item;
NSString * currentElement;
NSMutableString * currentImage;
NSMutableString * currentCaption;
}
@property (nonatomic, retain) NSMutableArray *images;
@end …Run Code Online (Sandbox Code Playgroud) 我需要在地图视图中实现半页卷曲,就像谷歌地图应用程序一样.我实施UIViewAnimationTransitionCurlUp,UIModalTransitionStylePartialCurl它不像谷歌地图那样完善.