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

Reading development doc confusion

Hi all i'm trying really hard to grasp swift but the only issue i'm having is that some of the docs for certain methods is still written in objective-c i was wondering if anyone could offer any advice on what they do to overcome this barrier when trying to figure out something in objective-c thanks for any suggestions

1 Answer

Hey Tunde,

This is a great question. I've run into the same thing myself. I think the problem is that objective-C is a much older programming language, about 32 years old according to wikipedia. Swift is around 6 months to 1 year old. Because of that a lot of the documentation on APIs in objective-C has not been updated to include how to do things in swift.

I'm sometimes somewhat surprised at what swift developers have been able to figure out given the lack of documentation (maybe there's additional source material besides the xcode documentation and API reference?). I think some of the more experienced programmers have been able to apply old objective-C APIs they know in swift through trial and error.

What I've found helpful is searching online for swift tutorials or previous code on git hub that is similar to what you want to do. There still isn't much out there since swift is pretty new. A lot of the online tutorials though cover things in swift that are still in objective-C only in the docs.

Let me know if this helps, sorry for the long answer!

This is a good answer thanks mate