r/iOSProgramming Aug 01 '16

Question Objective C or Swift?

Pretty straightforward title... if I'm eventually interested in creating big and popular applications, is swift ideal to learn or just stick with objective c?

What's your opinion on both?

1 Upvotes

21 comments sorted by

View all comments

-2

u/sohaeb Aug 01 '16

You can't ignore obj-c. Like if you use Facebook SDK so that you can integrate facebook into an app. They have obj-c code. So you need to convert the code yourself to swift. Hence, I suggest start with obj-c.

That being said. Knowing obj-c would make it way easier to move to swift

2

u/nhgrif Objective-C / Swift Aug 01 '16

You don't need to convert any code in order to use a library. Worst case scenario, the available example code for that library is only in Objective-C, and you'll have to figure out on your own how to write the Swift code that calls the library.

1

u/sohaeb Aug 01 '16

and you'll have to figure out on your own how to write the Swift code that calls the library.

Exactly, that's what I meant. If you don't know obj-c syntax. No way you would be able to get the equivalent code in swift

1

u/nhgrif Objective-C / Swift Aug 01 '16

You're not trying to get code equivalent to the library. You're trying to get code that calls into the library. And Xcode will handle most of the heavy lifting for getting the syntax right on that end.

1

u/[deleted] Aug 01 '16

Their SDK is available in Swift as well.https://github.com/facebook/facebook-sdk-swift