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

is objective c still used?

Hi i have been enjoying writing code for swift. but does this mean the end is near for objective c ?

2 Answers

Objective-C will probably be around for a while yet, at least a couple of years, and it is unlikely Apple will insist iOS/OS X apps are written solely in Swift until the language is more established, if ever.

Not likely. Apple will insist on the use of Swift whenever possible but it won't be Swift only. All major applications written for iPhone and Mac over the last 20 years have been written in Obj-C. That's 20 years worth of code that people won't be re-writing just because a new language is out. Apple however have provided ways to interface Obj-C and Swift so that future code can be written in Swift and work with Obj-C. Also, most of Apple's frameworks are still in Obj-C. They're transferring them over to Swift but that will take a looooong time. The engineer I talked to at WWDC said that he wouldn't be surprised if took Apple another 10-20 years to rewrite everything in Swift. The way he put it is, he's not going to teach his son Objective-C but he thinks anyone writing apps now should know it.

That was sort of long but I hope it helps.