Skip to content

Conversation

@jomazi
Copy link

@jomazi jomazi commented Jun 8, 2016

No description provided.

XXXXX43 and others added 2 commits June 6, 2016 21:08
@nilsvu
Copy link
Member

nilsvu commented Jun 11, 2016

Du musst den MoyaProvider aus dem App Delegate noch an deinen View Controller weitergeben ;)

override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
if segue.identifier == "showInformation" {

guard let informationViewController = (segue.destinationViewController as? UINavigationController)?.topViewController as? InformationViewController else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hier liegt der Fehler: der segue.destinationViewController ist direkt der InformationViewController, entferne also den ersten Cast zum UINavigationController.
Du findest so einen Fehler schnell, wenn du Breakpoints setzt und die Zeilen Schritt-für-Schritt ausführst.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants