Commit 44a839c4 by Dima Bart

Address warnings.

- switch to using UIAlertController
- assign an identifier to segue
parent 46d1e4c7
......@@ -85,6 +85,8 @@ extension AccountViewController: AuthenticationDelegate {
}
func authenticationDidFailWithError(error: NSError?) {
UIAlertView(title: "Error", message: error?.localizedDescription, delegate: nil, cancelButtonTitle: "OK").show()
let alert = UIAlertController(title: "Error", message: error?.localizedDescription, preferredStyle: .Alert)
alert.addAction(UIAlertAction(title: "OK", style: .Cancel, handler: nil))
self.presentViewController(alert, animated: true, completion: nil)
}
}
......@@ -78,7 +78,7 @@
<connections>
<outlet property="loginContainerView" destination="KZD-y5-2e3" id="g1r-NW-TfQ"/>
<outlet property="signupContainerView" destination="ZAC-pf-9Yj" id="GGw-ff-lV9"/>
<segue destination="gsn-tk-U20" kind="show" id="cw5-XQ-PCc"/>
<segue destination="gsn-tk-U20" kind="show" identifier="ordersSegue" id="cw5-XQ-PCc"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="twZ-kb-vHr" userLabel="First Responder" sceneMemberID="firstResponder"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment