Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

My navigation items do not appear.

I´m experimenting with 3d touch technology and at the moment I do the shortcut to a specific view, my navigation items do not appear. This is my code:

  func application(application: UIApplication, performActionForShortcutItem shortcutItem: UIApplicationShortcutItem, completionHandler: (Bool) -> Void) {
        if shortcutItem.type == "com.eco419.nuevo"{
        let sb = UIStoryboard(name: "Main", bundle: nil)
        let addStuff = sb.instantiateViewControllerWithIdentifier("New") as! ViewController
        let root = UIApplication.sharedApplication().keyWindow?.rootViewController

        root?.presentViewController(addStuff, animated: false, completion: { () -> Void in
            completionHandler(true)
        })
    }
}