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!
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
Derek Conway970 Points
Learn iOS using objective C or Swift?
Hi all. I was wondering which one should I try to tackle; Objective C or swift? I have no experience with either so I would appreciate any valuable input on this subject. Thanks in advance
Start with Swift. It's a manageable language (I would hate to say it's "easier" to learn than Obj-C, but I thought it was) and skills transfer nicely to and from languages like Java and JS. Obj-C is, from my experience, needed really only if you plan on becoming a professional iOS developer where you'll have to work with older apps originally written in Obj-C. You'll run into it occasionally outside of that but a bridging header is simple enough to run something like a Cocoapod written in Obj-C. At this point, Swift is still very much evolving so things will change but it's also a dominant enough and vetted enough language that most everything you want to do in Obj-C is available (and answered on SO) in Swift now.
Jason AndersTreehouse Moderator 145,854 Points
Personally, I did Objective-C first and then Swift 2.x. Although Swift is the new 'Apple language', most of what is out there (apps and almost all APIs) is still written in Objective-C... even Swift itself is based in Objective-C. In my opinion ... learn the base first and then learn the new 'levels'. But that's just me.