jjzjj

NavigationController

全部标签

ios - 如何删除添加到 navigationcontroller View 的 View ?

所以我的导航Controller中有一个设置栏按钮项,当从主页ViewController按下时,会在主页vc上打开设置vc透明View,因此主页vc在设置vc后面仍然可见。我希望导航栏仍然显示,所以在“HomeViewController.h”中我有以下代码:-(IBAction)settingsButtonPressed:(id)sender{SettingsViewController*settings=[[SettingsViewControlleralloc]init];[self.navigationController.viewaddSubview:settings.vi

ios - 更改 UIPrintInteractionController 导航栏标题

如何更改UIPrintInteractionController的导航栏标题(打印机选项)? 最佳答案 您可以使用UIPrintInteractionController的委托(delegate)方法来改变它的外观,-(UIViewController*)printInteractionControllerParentViewController:(UIPrintInteractionController*)printInteractionController{returnself.navigationController;}-(v

ios - 在以 Navigationcontroller 为 View 的 Popovercontroller 中更改 navigationBar 和 toolBar 的色调

我有一个UINavigationController作为我的UIPopoverController的主视图。我想更改导航栏和工具栏的色调,但似乎无法正常工作。谁能指出我正确的方向?这是我现有的无效代码。其中ColorScheme=[UIColorcolorWithRed:0.228green:0.307blue:0.492alpha:1.000]这是NSLOG语句的结果:配色方案=UIDeviceRGBColorSpace0.2280.3070.4921self.navController=[[UINavigationControlleralloc]initWithRootViewCo

objective-c - UINavigationController 的问题

我在我的应用程序中使用UINavigationController。在“返回”时,我想跳过一个View。我目前正在做的是:在我不想看到的View的viewDidAppear中,我检查它是否通过单击后退按钮出现,如果是,我调用:[self.navigationControllerpopViewControllerAnimated:YES];但是发生的事情是这样的:不需要的View和之前的View会变成一个View(一个在另一个之上)。更多解释:不需要的View是第二个View,我想转到RootView:我使用的另一个代码是:[self.navigationControllerpopToR

objective-c - 关于 self.navigationController pushViewController (IOS)

MoreFunctionViewController.h代码如下:#import@interfaceMoreFunctionViewController:UIViewController{UITableView*moreTable;}@property(nonatomic,retain)UITableView*moreTable;@end和MoreFunctionViewController.m代码如下:#import"MoreFunctionViewController.h"#import"CustomNavigationBar.h"#import"MyShakeViewContro

ios - 在推送每个新 View Controller 时调整导航 Controller 的大小以模态方式呈现 UIModalPresentationFormSheet

设置:“VC1”使用RootViewController“VC2”创建“NavigationVC”,并使用呈现样式UIModalPresentationFormSheet以模态方式呈现它。“VC2”以正确的尺寸显示在屏幕中间的导航Controller内。问题:当我继续将ViewController推送到模态NavVC时,我希望它们能够调整大小。推送的每个ViewController中我的preferredContentSize的NSLog验证我的约束是否正确并且大小实际上不同。但是,我已经进行了广泛的实验,但还没有弄清楚如何在呈现模态后更改模态的大小。@implementationVC

ios - 没有 NavigationController 的 Storyboard中两个 View 之间的 Segue/Transition

是否可以不使用NavigationController并使用带有storbyboard的动画/segue更改View。我似乎无法弄清楚如何做到这一点。我认为这会很简单,但没有运气。我只有两个View,想在不添加导航Controller的情况下进行转换。 最佳答案 当然,只需创建segue并在弹出的菜单中选择“modal”而不是“push”。当您想要返回时,您可以通过以下方式以编程方式执行:[selfdismissModalViewControllerAnimated:YES]; 关于io

ios - 如何在 UINavigationBar 上设置图像

设置navigationController一个大小为750×90ImageSize的图像[self.navigationController.navigationBarsetBackgroundImage:[UIImageimageNamed:@"bg.png"]forBarMetrics:UIBarMetricsDefault];在将图像设置为导航Controller后,它没有在UINavigationController上完全绘制图像。如何在UINavigationController栏上设置图像。 最佳答案 试试这个uset

iphone - 为所有 navigationcontroller 和 navigationitem 设置 titleview

[[[UINavigationBarappearance]setTitleView:button]我尝试使用上面的代码行将标题View设置为所有导航项的按钮,但它不起作用。如何通过在appdelegate中编写小代码来为项目中的所有导航栏设置标题View? 最佳答案 自定义导航栏的外观itisalrighttomodifythebarStyle,tintColor,andtranslucentproperties,butyoumustneverdirectlychangeUIView-levelpropertiessuchasthe

ios - 呈现具有自定义大小的 UIViewController

一段时间以来,我一直在用头撞墙。我有一个iPad应用程序,它使用Master-DetailSplitViewController作为其演示框架。我需要在应用程序首次加载时显示一个登录对话框,并将其设置为自定义大小。我在主Storyboard中创建了一个UIViewController场景,并在首次加载DetailController时加载VC。我遇到的问题是我完全无法控制VC的大小。我已将其定义为FormSheet,以纵向模式显示。我将Presentation设置为FormSheet。我尝试以几种不同的方式明确设置大小,但绝对没有任何效果。根本问题是,由于所有这些,VC总是以全屏显示为