子视图上的 MonoTouch 导航控制器?
我能找到的每个示例都向我展示了如何创建一个主窗口是导航控制器的项目。 我不希望这样,因为一旦用户导航到我的应用程序的某个部分,我不希望他们能够返回到某个点。
对于我的一生,我无法弄清楚如何使 NavigationController 成为我的主窗口的子视图。 任何人都可以帮忙解决这个问题吗?我尝试创建一个新的 .xib 文件并从中创建一个 NavigationController,但我一定做错了什么,因为它经常因我无法理解的错误而崩溃,或者(就像现在)它加载导航栏,但没有标题并且不会更改屏幕上的视图。
是否有任何教程可以将 NavigationController 不作为主视图?
Every example I can find shows me how to create a project where the main window is a NavigationController.
I don't want that because once the users navigate to a certain part of my app, I don't want them to be able to get back until a certain point.
For the life of me I cannot figure out how to make a NavigationController be a SubView of my main window.
Can anyone help with this at all? I have tried creating a new .xib file and making a NavigationController out of that, but I must be doing something wrong because it constantly crashes with errors that I can't understand or (like right now) It loads the Navigation Bar, with no title and doesn't change the View that is on the screen.
Is there any tutorials anywhere for doing a NavigationController NOT as your main View?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你有一些示例代码吗?
因为似乎没有理由不能做这样的事情:
// in main view
public override void ViewDidLoad ()
{
基.ViewDidLoad();
从UINavigationViewController
继承 MyViewController 是可以的。
希望这有帮助。
Do you have some sample code?
As there seems to be no reason why you should not be able to do something like this:
// in main view
public override void ViewDidLoad ()
{
base.ViewDidLoad ();
}
And it is fine to have the MyViewController inherited from UINavigationViewController.
Hope this helps.