[英]NavigationBar is not showing
我已经在UINavigationController
嵌入了一些ViewController,但是backButton / navigationBar没有显示。 在第二个ViewController
,navigationBar推入StoryBoard中,但没有出现在模拟器中;在第三个ViewController
,navigationBar根本不显示。 为什么会这样呢?
编辑
我使用prepareForSegue
将数据发送到下一个ViewController
。 我不知道这是否重要..
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
performSegue(withIdentifier: "ToListVCSegue", sender: self)
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?)
{
if segue.identifier == "ToListVCSegue"
{
let destination = segue.destination as! ListLocationViewController
if let indexPath = tableView.indexPathForSelectedRow{
destination.listID = listID[indexPath.row]
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.