jjzjj

navigationController

全部标签

ios - UIStoryboard popViewController

我在我的应用程序中使用UISegue在我的应用程序中的ViewController之间自动转换。我称它们为A和B。它按预期工作,但是当我想从B返回A时,我尝试调用[self.navigationControllerpopViewController]但是B的navigationController属性报告null。作为第二次尝试,我尝试将按钮映射到UISegue以返回ViewControllerA。然而,这只是创建了一个新的ViewController。作为解决方法,我最终做了一个解决方法是从UIStoryboard中检索Bviewcontroller并调用[A.navigationC

c# - 使用 MonoTouch.Dialog 时更改 TabBarController 和 NavigationController

我正在尝试更改导航栏Controller和标签栏Controller的颜色我正在使用monotouch.dialog构建我的应用程序并具有以下代码publicpartialclassAppDelegate:UIApplicationDelegate{//class-leveldeclarationsUIWindowwindow;////Thismethodisinvokedwhentheapplicationhasloadedandisreadytorun.Inthis//methodyoushouldinstantiatethewindow,loadtheUIintoitandthe

objective-c - 从推送的 UIViewController 访问根 UINavigationController

我的项目遇到了问题。每次我尝试从PushedUIViewController访问我的UINavigationController时,我都会返回“(null)”。所以这是我的项目结构:1.AppDelegate.minitalisesUINavigationController2.UINavigationControllerstartswithWelcomePage3.WelcomePagePushesNewUIViewControlleronButtonPress4.UIViewControllerreturns(null)whenself.navigationControllerca

iphone - Obj-C,属性 'navigationController' 未在 NSObject 类的类型对象上找到?

我收到以下错误Property'navigationController'notfoundonobjectoftype我继承了这个项目,但不确定发生了什么。在我的didSelectRowAtIndexPath中的m文件中有[self.navigationControllerpushViewController:nextControlleranimated:YES];以前这不是问题,因为我正在访问应用程序委托(delegate)导航Controller,它们是socket。但是,我不得不放弃这种方法,因为它给我带来了问题。我已经转换了项目的其余部分。但是在这种情况下,项目没有使用普通的T

ios - 在类中添加 NavigationController 而不是在 appdelegate 中

如何在任何类的下一个类的viewDidLoad方法中添加导航Controller,我没有在appdelegate的开头添加它。 最佳答案 YourViewController*report=[[YourViewControlleralloc]init];//createObjectofYourViewControllerUINavigationController*navigationController=[[UINavigationControlleralloc]initWithRootViewController:report]

ios 7半透明+彩色导航栏

我正在iOS7上开发我的第一个应用程序并面临一个新问题。我想要做的是让我的UINavigationBar半透明和彩色,我怎样才能做到这一点?self.navigationController.navigationBarHidden=YES;self.navigationController.navigationBar.translucent=YES;self.navigationController.navigationBar.barTintColor=[UIColotgreenColor];如果我设置bartintcolor,则半透明属性不再有效。我知道有很多关于此的问题,但相信我,

ios - iPad 导航 Controller 工具栏位置

我在UINavigationViewController中有一个UIViewController。我使用navigationController.toolbar进行一些操作。在第一次设备轮换之前没有问题。工具栏离开屏幕框架后。而且没有什么可做的,即使是另一个设备旋转也无法解决这个问题。该问题仅出现在iPadiosv.6上。代码非常简单:-(void)createToolbar{UIImage*toolbarBack=[[UIImageimageNamed:@"navbar"]resizableImageWithCapInsets:UIEdgeInsetsMake(2,2,2,2)];[

ios - 通过弹出 navigationController 或使用标签栏来识别是否到达 viewController 的更好方法

尝试澄清:我希望能够区分以下两种情况:一个viewController的View由于弹出而变得活跃。viewController的View因tabBar导航而变得活跃在我正在处理的应用程序中,我需要知道viewController是否由于其navigationController被弹出而被呈现。我看过这个post并认为我已经通过简单地调用找到了解决方案:BOOLwasReachedByPopping=!self.isMovingToParentViewController;在我的viewWillAppear:方法中这在大多数情况下工作正常,但不幸的是,当通过tabBarControll

ios - 我改变观点的方式有什么问题吗?

我在任何给定时间只需要1个View。我的目标是ios6并使用arc。我有一个MasterViewController,我所有的View都继承自它,所以它们都有这个方法:-(void)showNextView:(UIViewController*)newController{[self.navigationControllerpushViewController:newControlleranimated:true];[self.navigationControllerpopToViewController:newControlleranimated:false];[selfviewDi

ios - 导航栏不透明

Applesaythis:barTintColorThiscolorismadetranslucentbydefaultunlessyousetthetranslucentpropertytoNO.那么为什么我的代码会生成一个不透明的导航栏?self.navigationController.navigationBar.barTintColor=[UIColorcolorWithRed:0/255.0fgreen:119/255.0fblue:255/255.0falpha:1.0f];我尝试添加这个以防万一,但没有成功。self.navigationController.naviga