【发布时间】:2016-01-17 17:43:07
【问题描述】:
在我使用 Parse.com 框架的应用程序中,在任何操作之后,例如 sign up 我想去另一个 sotyboard 例如 login,所以我执行以下代码:
user.signUpInBackgroundWithBlock({ (succeeded: Bool, error: NSError?) -> Void in
if error != nil{
// alert Error
} else {
let action = UIAlertController(title: "Congratulattion!", message: "Now yu can start chatting", preferredStyle: .Alert)
let ok = UIAlertAction(title: "OK", style: .Default, handler: { (alert) -> Void in
let mainVC = self.storyboard?.instantiateViewControllerWithIdentifier("login") as! LogInViewController
self.presentViewController(mainVC, animated: true, completion: nil)
})
action.addAction(ok)
self.presentViewController(action, animated: true, completion: nil)
}
之后我的NavgationBar 消失了。我的应用程序如下所示:
我需要做什么,我的Navbar 没有消失?
使用
self.performSegueWithIdentifier("signup", sender: self)从Sign Up App Chat转到Welcome in Chat App后看到的错误图片
【问题讨论】:
标签: ios iphone xcode swift parse-platform