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

Scott Brown
Scott Brown
4,406 Points

NSURL string symbols

I am having problems with symbols in my strings. I think I found how to deal with "=" for instance "api=........" but the "&" I can't find anything on how to utilize this with NSURL. Oh let me just mention that this is for API retrieval. Help me please! Thanks :)

Scott Brown
Scott Brown
4,406 Points

This is for Swift. I forgot to mention that.

1 Answer

I'm not sure I understand your problem. Could you give us a code sample?

Scott Brown
Scott Brown
4,406 Points

This is the url------> "http://....................../api/...................allForZip.json?apikey=......................&zip=................." and I'm trying to figure out how to utilize nsurl with this to test to see if I'm getting the json data on playground. I'm not sure how to do it with the "&" and "=" symbols.