Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input error #7

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

input error #7

wants to merge 5 commits into from

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