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

iOS Introducing API and OAuth 2.0

Ok so I have started the Introducing API and OAuth 2.0 video and walking through it step for step.

I have had to install the latest cocoapods cocoapods-0.32.1 I am able to get the Instagram Modal that comes up on viewDidLoad.

But when I try to log the responceObject I just get a warning in the log. I seem to be logged in no problems. But I dont get the NSLog?

2014-04-17 14:55:37.263 PhotoBombers[6478:60b] Warning: Attempt to present <UINavigationController: 0x8f12460> on <UINavigationController: 0x8f08f70> whose view is not in the window hierarchy!

The code I am using is:

    [SimpleAuth authorize:@"instagram" completion:^(id responseObject, NSError *error) {
        NSLog(@"response: %@", responseObject);
    }];

Is this because of a new version of cocoapods?

I seem to have done something wrong in the app delegate. Its working perfect now.

1 Answer