Xcode:导航控制器加载 UIpagecontrol 视图?
用户,
我遇到了一个无法解决的问题,希望您能帮助我;
我正在构建一个小型 iPhone 应用程序,它基本上有一个顶栏(图像)、地栏(图像)和中间的中间栏(滚动视图),用于 PageControll。
一切都很好,直到我告诉 IB 我的 rootViewController 是一个导航控制器。页面控件不再是交互式的,它看起来只是显示视图。导航控制器的目的是当有人双击滚动视图区域时推送新视图。
我是否必须将 PageController 定义为 rootController NavController 的子控制器?或者 PageController 根本不是控制器,我是否必须将滚动视图与主委托分开?
我希望有人能够阐明我的问题;提前致谢!
此致, 巴茨
users,
i have a problem i cant get my head around, i hope you could help me out;
I'm building a small iphone app that will basically have a topbar(image), groundbar (image) and in the middle a middlebar (scrollview) which is used for PageControll.
All is fine until i tell IB that my rootViewController is a navcontroller. The pagecontrol isnt interactive anymore and it seems like its just displaying the view. The purpose of the navcontroller will be to push a new view when someone double taps on the scrollview area.
Do i have to define the PageController to be a childcontroller of the rootController NavController? Or isnt the PageController a controller at all and do i have to seperate the scrollview from the main delegate?
I hope someone can shed some light on my problem; thanks in advance!
Best regards,
btz
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
UINavigationController
对象保存其他ViewController
对象。您不操作navigationController 中的任何视图,而是将要在navigationController 堆栈上显示其视图的viewController 推入。在您获得更具体的信息(例如发布一些代码)之前,我无法比这更具体。
UINavigationController
objects hold otherViewController
objects. You do not manipulate any views from the navigationController, instead, you push the viewController whose views you want to display on the navigationController's stack.I can't be more specific than that until you get more specific, for instance by posting some code.