2016-12-29 102 views
0

我有一个XIB文件:显示视图控制器与笔尖

enter image description here

enter image description here

我把它连接到TopRankViewController

但是当我推到TopRankViewController,有一个空的ViewController,有在这里没有按钮。

我的代码:

if let tabBarController = self.tabBarController { 
    let topRankViewController = TopRankViewController(nibName: "TopRankViewController", bundle: nil) 
    topRankViewController.titleLocalize(title: type.title) 
    tabBarController.navigationController?.pushViewController(topRankViewController, animated: true) 
} 

我想表明这在我的xib文件中定义这些按钮。

+0

对于这一点,你必须创建厦门国际银行文件的对象,然后添加这个对象作为一个子视图到主视图。 – Amanpreet

+0

在xib文件中,'File's Owner'是'TopRankViewController'。 – Khuong

+0

给背景颜色在xib中查看,然后检查它是否有效。 – SNarula

回答

0

我在这个视图中添加一个视图,它适用于我。

enter image description here

相关问题