var newsListView:UIViewController!
newsListView = mainStoryboard.instantiateViewControllerWithIdentifier(“NewsList”) sideMenuController()?setContentViewController(newsListView)
答案 0 :(得分:0)
是,
var newsListView: UIViewController!
var newsTableView: UITableViewContoller!
if iwantlistview == true {
newsListView = mainStoryboard.instantiateViewControllerWithIdentifier("NewsList") sideMenuController()?.setContentViewController(newsListView)
} else {
newsTableView = mainStoryboard.instantiateViewControllerWithIdentifier("NewsTable") sideMenuController()?.setContentViewController(newsTableView)
}
我希望这会有所帮助:)