草庐IT

UINavigationcontroller

全部标签

ios - UINavigationController 自定义动画阻止滑动返回工作

我注意到一些奇怪的事情,可能是UINavigationController中的错误。当你覆盖-navigationController:animationControllerForOperation:fromViewController:toViewController:并返回nil(对于默认动画行为),拖动返回手势不再有效。这个方法的文档说你应该返回“如果你想使用标准的导航Controller转换nil”。我对此的解读是,返回nil不应阻止默认行为的发生。我还发现,如果导航Controller的interactivePopGestureRecognizer.delegate为gest

cocoa - UINavigationController-Alike for Desktop-Cocoa?

我目前正在开发一个应用程序,它的用户界面很像TwitterforMac(像iOS一样插入/推出View)。有人为桌面Cocoa实现了UIViewController吗?这将为我节省很多工作时间。 最佳答案 目前标准AppKit中没有。您必须自己编写。如果您决定走这条路,这可能会有所帮助:http://parsekit.com/umekit/UMEKit是Cocoa的一个小框架,它实现了一些与UIKit类和UI组件等效的东西。 关于cocoa-UINavigationController-

iphone - 如何在 UINavigationController 上方添加 View ?

您好,我想知道我应该如何放置一个View,使其覆盖整个UINavigationController。基本上我想在View中添加一个0.5alpha的黑色覆盖层,以使其具有“禁用”外观。而我要介绍的UINavigationController是iPad上的SplitViewController的DetailViewController。我知道我可以将View作为subview添加到导航ControllerRootView,但这不会覆盖顶部的导航栏。 最佳答案 据我所知,您想用您的View覆盖整个屏幕。可能这会有所帮助[self.nav

iphone - 从 AppDelegate 获取 Storyboard定义的 UINavigationController

在Storyboard中,我有一个介绍性的ViewController,它逐渐变为UINavigationController。||||->||->||||||ViewCtrlNavCtrl我想从应用程序委托(delegate)中获取对导航Controller的引用(就像@Guillaume的回答在thisquestion中所做的那样)。这是我尝试访问它的方式:UIApplication.sharedApplication.delegate.window.rootViewController.navigationController;但是导航Controller是零。知道为什么navC

带有 UINavigationController 的 iOS 7 自定义转换

该视频展示了我遇到的问题。http://www.youtube.com/watch?v=C9od_2KZAbs我正在尝试使用UIPanGestureRecognizer创建自定义交互式推送过渡。我有一个交互式过渡委托(delegate)(使用UIPercentDrivenInteractiveTransition)和一个过渡动画师。completeTransition:似乎不必要地重新激活了推送。下面是平移手势如何控制过渡:-(void)panGestureRecognized:(UIPanGestureRecognizer*)gestureRecogznier{CGPointtran

ios - UINavigationController - 弹出动画错误

我在处理UINavigationController的动画时遇到了问题。我有主细节View。在查看一个按钮上,这是打开的详细View。详细信息View正确打开,带有正常的标题动画和内容滑动。但是当我单击“后退”按钮时,标题动画正确,并且细节内容立即消失并且没有动画。这是问题演示的链接:https://www.youtube.com/watch?v=C4UApAhEhx8打开我使用标准AboutViewController*aboutViewController=[[AboutViewControlleralloc]initWithNibName:@"AboutViewControlle

ios - UIPageViewController 更改时更改 UINavigationController 的标题

我在Xcode5中有一个Storyboard,其中有一个UITabbarController,它有一个UINavigationController,它链接到一个UIViewController。从最后一个UIViewController开始,其余的(UIPageviewController和UITableViewController是在各自的类中以编程方式创建的。请参见屏幕截图。问题是当UIPageViewController的页面发生变化时设置UINavigationController的标题。我希望标题反射(reflect)UITableViewController类上的@prop

ios - UINavigationController 在顶部有额外的状态栏间隙

当我设置它时,这看起来很简单,但我无法解释为什么状态栏和导航栏之间存在这个差距。此外,包含的View看起来可能已正确对齐,只是向下移动了导航栏。差距看起来像状态栏的大小,所以我认为这与它有关,但我不知道是什么。下面是设置导航Controller的代码:-(void)viewDidLoad{[superviewDidLoad];advancedVC=[[AdvancedSearchFormVCalloc]initWithNibName:@"AdvancedSearchForm"bundle:nil];UINavigationController*nav=[[UINavigationCon

iphone - 如何确定 UINavigationController 中工具栏的高度?

我有一个由UINavigationController呈现的带有工具栏的View。当我处理UIKeyboardWillShowNotification时,我将整个屏幕向上滚动键盘的高度。问题是当显示键盘时,底部工具栏没有,所以我只需要将屏幕向上滚动(keyboard.height-toolbar.height)。但是如何获取工具栏的高度呢?谢谢 最佳答案 您只需检查工具栏框架即可。self.navigationController.toolbar.frame.size.height当然,它只有在你有导航Controller的情况下才

ios - prepareForSegue 被调用两次,在演示过程中尝试呈现 <UINavigationController>

我是ios编程的新手,在这里问,但我一直访问!我很困惑为什么我会遇到这个问题,它编译没有错误,我已经检查并检查了我的MainStoryboard中的所有socket和标识符。我有2个UITableViewController,当用户在表中选择一个项目时,我将一个字符串从第一个传递到第二个,所以FirstTableViewController.m-(void)tableView:(UITableView*)tableViewdidSelectRowAtIndexPath:(NSIndexPath*)indexPath{intsel=indexPath.row;if(sel==0){_ke