MonoTouch UITabBarController 和 UINavigationController 标题
我有一个带有各种视图的 UITabBarController 来在我的应用程序中导航。
我希望在它们的顶部添加一个漂亮的标题,并认为最好的方法是使用 UINavigationController。
在 xcode 中找到了一篇不错的文章来执行此操作: http:// /b00gizm.posterous.com/how-to-embed-a-navigation-controller-inside-a
显然尝试按照上面的文章进行操作,但没有成功...有人知道如何使用 C# 在 Mono 上执行此操作吗?
I have a UITabBarController with various views to navigate around my application.
I wish to add a nice title to the top of these and figured the nicest way is with the UINavigationController.
Found a nice article in xcode to do this: http://b00gizm.posterous.com/how-to-embed-a-navigation-controller-inside-a
Obviously tried following the article above with no luck... does anyone know how to do this on Mono using C#?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想在视图的顶部显示标题,最好仅为此目的创建其他视图。
UINavigationController 有一个特定的目的,那就是在其堆栈中的各个控制器之间提供导航,这意味着它还需要至少一个根视图控制器。
If you want to display titles on the top side of your views, it would be better to just create other views for this purpose alone.
The UINavigationController has a specific purpose and that is to provide navigation among various controllers in its stack, which means it will also need at least a root view controller.