Iphone 在照片库中使用Three20 SDK隐藏自定义TabBarController
我创建了一个自定义选项卡栏,它是Iphone 在照片库中使用Three20 SDK隐藏自定义TabBarController,iphone,objective-c,ios,three20,Iphone,Objective C,Ios,Three20,我创建了一个自定义选项卡栏,它是UITabbarController的子类。在我的选项卡栏中有一个ui图像视图、一个nsarray和五个ui按钮。我用不同的图像设置每个按钮,然后用按钮设置数组 在appDelegate.m文件中,我创建了5个不同类及其导航控制器的实例。使用实例数组设置uitabarcontroller的viewcontroller 一切都很好,运作良好。我使用Three20SDK来创建照片库。当pushed=YES时,使用self.hidesbottombar 代码行,隐藏io
UITabbarController
的子类。在我的选项卡栏中有一个ui图像视图
、一个nsarray和五个ui按钮
。我用不同的图像设置每个按钮,然后用按钮设置数组
在appDelegate.m文件中,我创建了5个不同类及其导航控制器的实例。使用实例数组设置uitabarcontroller的viewcontroller
一切都很好,运作良好。我使用Three20SDK来创建照片库。当pushed=YES时,使用self.hidesbottombar代码>
代码行,隐藏ios sdk的原始选项卡栏,但我无法在显示照片时隐藏自定义选项卡栏
如有任何建议,将不胜感激
我的系统是这样工作的:在mainViewController类中有10张画廊图片。当我单击其中一个应用程序时,它将转到PhotoTest2Controller类,并列出单击的画廊图片。当我点击一张照片时,它会显示得更大
我对我的类做了一些修改,这个类是TTThumbsViewController的一个子类,名为PhotoTest2Controller
但是当我打开图库和照片时,选项卡栏是可见的。在PhotoTest2Controller类中,我在ViewDidDisplay中做了以下更改
TTNavigator *navigator = [TTNavigator navigator];
navigator.persistenceMode=ttnavigatorpersistencemodel代码>
navigator.window=[[UIWindow alloc]initWithFrame:TTScreenBounds()]自动释放]代码>
TTURLMap *map = navigator.URLMap;
[map from:@"tt://order?waitress=(initWithWaitress:)" toModalViewController:[PhotoTest2Controller class]];
现在可以做什么?如果要在不使用选项卡栏控制器的情况下推送单个控制器,可以将其作为模型视图推送
// The ordering controller will appear as a modal view controller, animated from bottom to top
[map from:@"tt://portal/test"
toModalViewController:[ContentController class]];
谢谢你的回答,我如何使用这个代码段?我对地图一无所知。你在应用程序代理中使用three20的TTNavigator吗?如果没有,您可以使用标准控制器函数来演示控制器:[self-presentModalViewController:animated:我不在应用程序代理中使用TTNavigator aporat.aporat我现在意识到,我在我的类中尝试了类似的方法,它是TTThumbsViewController的子类。[self-presentModalViewController:PhotoTest2Controller animated:是];但它给出了错误:“PhotoTest2Controller”之前的预期表达式。我尝试了一些与ViewDidDisplay方法[self-presentModalViewController:self-animated:YES]中的代码片段相关的内容;当我像这样运行应用程序时,导航栏和图像将丢失。