Custom viewcontroller won’t load in tabbed application (iOS / Xcode)
我有一个使用选项卡应用程序模板创建的选项卡式应用程序。我添加了一个新的视图控制器并将其与情节提要中的 segue 链接起来。在模拟器中,第三个选项卡显示在选项卡栏中,当我切换到第三个选项卡时,会调用 “loadView” 方法(我在其中放置了一个 NSLog 进行检查)。
但是,视图是空的(黑屏)。我可以切换回其他选项卡。当我切换回来时,日志消息再次出现,但仍然没有加载视图。我确保将身份检查器中的类设置为第三个视图的新视图控制器类。但我就是无法加载它。
什么给了?我很确定我以前做过。我错过了什么?
-
您是否将您的 XIB 中的 Root UIView 连接到您的 UIViewController 的视图?
有时你只是忘记这样做..
- 嗯,我不知道这是否适用,因为我正在使用情节提要……是吗?
来源:https://www.codenong.com/9937277/
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_8768.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57