0
我試圖顯示另一個具有嵌入式導航控制器的TableViewController。但是,當我嘗試運行模擬時,它不顯示導航控制器。嵌入式導航控制器欄不顯示
我已經附加了一些截圖
我的代碼AlertTableViewController.swift
override func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [AnyObject] {
var deleteAction = UITableViewRowAction(style: UITableViewRowActionStyle.Default,
title: "Delete",handler: { (action:UITableViewRowAction!, indexPath:NSIndexPath!) -> Void in
// Delete the row from the data source
})
var editAction = UITableViewRowAction(style: UITableViewRowActionStyle.Default,
title: "Edit",handler: { (action:UITableViewRowAction!, indexPath:NSIndexPath!) -> Void in
// Delete the row from the data source
let wlObject = self.fetchedResultsController.objectAtIndexPath(indexPath) as! AlertScheduleList
let editDestinationController = self.storyboard?.instantiateViewControllerWithIdentifier("editWLVC") as! EditWLTableViewController
editDestinationController.watchlist = wlObject
self.presentViewController(editDestinationController, animated: true, completion: nil)
})
editAction.backgroundColor = UIColor(red: 255.0/255.0, green: 126.0/255.0, blue: 0.0/255.0, alpha: 1.0)
deleteAction.backgroundColor = UIColor(red: 236.0/255.0, green: 0.0/255.0, blue: 100.0/255.0, alpha: 1.0)
return [deleteAction, editAction]
}
我的故事板的AlertTableViewController
仿真結果當我運行它
我哪裏出錯了?任何幫助表示讚賞。這裏
是您的模擬器橫向模式? – Satachito
是的,風景模式...即使它是在肖像模式下,仍然顯示相同的問題 – Gino