ipad – 工具栏在自定义UIViewController中不可见

ipad – 工具栏在自定义UIViewController中不可见,第1张

概述我正在使用monotouch for iPad创建一个主细节应用程序.在我添加的主视图中,自定义了UIViewController.这个UIViewController在顶部有一个工具栏和2个UITableView.我只能看到第一个UITableView.我无法在底部看到工具栏和其他UItableView. 我不确定是否需要打开任何内容或配置任何内容以启用可见性. 我为每个表视图和工具栏创建了插座 我正在使用monotouch for iPad创建一个主细节应用程序.在我添加的主视图中,自定义了UIVIEwController.这个UIVIEwController在顶部有一个工具栏和2个UItableVIEw.我只能看到第一个UItableVIEw.我无法在底部看到工具栏和其他UItableVIEw.

我不确定是否需要打开任何内容或配置任何内容以启用可见性.

我为每个表视图和工具栏创建了插座.

如果有人能对此有所了解,我将不胜感激.

请看图像.

谢谢

Balan Sinniah

更新:我有AppDelegate代码如下

[Register ("AppDelegate")]public partial class AppDelegate : UIApplicationDelegate{    // class-level declarations    UIWindow window;    UISplitVIEwController splitVIEwController;    public overrIDe bool FinishedLaunching (UIApplication app,NSDictionary options)    {        // create a new window instance based on the screen size        window = new UIWindow (UIScreen.MainScreen.Bounds);        var controller = new RootVIEwController ();        var navigationController = new UITabbedVIEwController();        var detailVIEwController = new UIDetailVIEwTabbedbarController();        splitVIEwController = new UISplitVIEwController ();        splitVIEwController.WeakDelegate = detailVIEwController;        splitVIEwController.VIEwControllers = new UIVIEwController[] {            navigationController,detailVIEwController        };        window.RootVIEwController = splitVIEwController;        navigationController.DetailVIEwController = detailVIEwController;        // make the window visible        window.MakeKeyAndVisible ();        return true;    }}

我的导航控制器是UITabbedVIEw控制器,它有2个UIVIEwController.我在其中一个UIVIEwController中添加了工具栏和2个表视图.

解决方法 我通过调整界面构建器中的自动调整部分,标记左,右和上红线并取消标记底部红线来实现它,然后一切看起来都很好.

我为UItableVIEw做了同样的事情,我在顶部标记了红线.

总结

以上是内存溢出为你收集整理的ipad – 工具栏在自定义UIViewController中不可见全部内容,希望文章能够帮你解决ipad – 工具栏在自定义UIViewController中不可见所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1079914.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-27
下一篇 2022-05-27

发表评论

登录后才能评论

评论列表(0条)

保存