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

Basic Http Authorization Objective C

I tried the two versions indicated in this link: (http://transoceanic.blogspot.com/2011/10/objective-c-basic-http-authorization.html)

The first version cannot find the base64 identifier. Does foundation has internal support for it or I have to import a library?

The second version, I only have a main.m source code, don't have any class, shall I create a new class and put the delegate part in it? What's the detailed steps to add the delegate to my main program?

Is there any other easy ways to do the http authorization instead of the two versions listed above?

1 Answer