Advertisements
Objective C or Swift for developing iOS apps?
We may wonder which one to choose Objective C or Swift? Well, thats a good question. Personally, I would suggest Objective C though you may hear many people saying swift.
When to use Objective C?
Based on my 3+ years experience in Swift and 6+ years experience in Objective C,
code in Objective C is
- Easier to maintain
- Lesser compilation time
- Smaller build size
If you ready to learn Objective C and put some efforts upfront, it can help you in the long run. Learning Swift with knowledge if Objective C is going to be easier anyway. And Objective C can import all swift libraries like Swift's ability to import objective C code.
When to use Swift?
- Familiarity with scriting languages like javascript. Personally I find many things from Javascript
- Ready to spend time in upgrading apps to latest swift versions. Latest Xcode's often needs you to upgrade your projects to latest Swift version.
- Its often more powerful with few lines of code
- More features and continously evolving, so if you ready to learn, you can take advantage of these features.
Objective C may end in future but I don't see it happening in the next 3-4 years at least, so my personal recommendation is start with Objective C and then learn swift.