Upvote:3
Of course, this depends very much on what you are planning to do. But I think there are a some points you should consider:
Performance
According to this SO question the performance is not as good as Apple promised (yet). But if you care about high performance, you should wonder if Objective-C is your way to go.
C++ Code
Very important is the fact, that you cannot use C++ code in your Swift code without having a Objective-C(++) wrapper:
You cannot import C++ code directly into Swift. Instead, create an Objective-C or C wrapper for C++ code.
from the Apple Swift Documentation.
Platform
Swift uses the same runtime as the existing Objective-C system and the idea of Automatic Reference Counting. So in my humble opinion a basic knowledge of Objective-C and the ideas behind helps to write better and more performant Swift code.
Existing Work
It will take some time that all frameworks, methods, classes, etc. have a pure Swift interface. Almost every demo project from Apple is written in Objective-C, too.
Conclusion
So I think, you will need some basic Objective-C knowledge in the future - maybe this changes over time. But it depends very much on what you are planing to do.
More Answer related to the Same Query
- WILL OBJECTIVE C BE NECESSARY FOR NEW IOS/OSX RELEASES? IN IOS
- CONVERT NUMBER TO DIGITS IN OBJECTIVE C IN IOS
- IF ONCE VALUE ASSIGNED TO A VARIABLE IN OBJECTIVE C WHILE APPLICATION INSTALL THEN HOW TO ACCESS THAT VALUE AT EVERY TIME OF OPENING AN APPLICATION? IN IOS
- IS IT NECESSARY TO CREATE A RETINA VERSION OF AN APP? IN IOS
- GET INDEXPATH.ROW FROM TABLEVIEW OBJECTIVE C IN IOS
- OBJECTIVE C SETTERS, HELP UNDERSTANDING THE BASICS OF OBJECTIVE C IN IOS
- WRITING A FOR LOOP IN OBJECTIVE C WAY IN IOS
Upvote:3
Learning either ObjC or Swift is not the hard part. Work through your fear: it only indicates new things to learn!
Swift is also very much not like Javascript. Don't be fooled by its surface appearance (in fact, avoiding focusing on surface appearance in general is a pretty good plan).
To answer the question though: I would expect it to be a few more years before you won't get a significant benefit from knowing ObjC; there's a LOT of existing code, examples, docs, etc... all in ObjC. But there's little to nothing in the system APIs that will require it once Swift 1.0 is actually out.
Upvote:2
Is there anything I won't be able to do with only Swift?
Yep - if you need to support cross-platform or legacy code bases with C or C++ code there's no way yet (an not in the foreseeable future) this could be done with Swift.
More Answer related to the Same Query
- IF APP IN REVIEW STATUS FOR MORE THAN 1 WEEK, IT WILL BE REJECTED. IS THIS TRUE? IN IOS
- MULTIPLYING PREPROCESSOR CONSTANTS IN OBJECTIVE - C IN IOS
- IS IT POSSIBLE AND NECESSARY FOR AN APP TO HAVE ZERO MEMORY LEAKS? IN IOS
- HOW TO PRODUCE 2 DIMENSIONAL ARRAY IN OBJECTIVE C IN IOS
- OBJECT REFERENCE COUNT IS DIFFERENT IN SWIFT AND OBJECTIVE C IN IOS
- SEND IMAGE FROM OBJECTIVE VC TO SWIFT CONFIGURED VC IN IOS
- HOW TO DETECT IOS 7 AND IOS 8 AND WIDESCREEN IPHONE SIZES TO MAKE MY APP UNIVERSAL? IN IOS
- DISPATCH_ONCE SINGLETON IN SWIFT IN IOS
- CASTING NSNUMBER TO BOOLEAN GIVES DIFFERENT RESULTS FOR IPHONE AND IPAD IN IOS
- PASS DATA FROM UITABLECELL TO UITABVIEW IN IOS
Upvote:0
I think, it's better to read about Objective-C, at least basic things in order to be able to read it, because if you are going to be an iOS/Mac developer, the chances are high that at some point you'll have to interact with Objective-C code somehow (for instance, you might need to take a look at some third party library code). Learning the basics doesn't take much time, Objective-C is actually a rather simple language. It's just not very pretty :)
The other possible necessity for Objective-C is a code optimization. High performance parts of code are often written in pure C/C++. You can't mix C/C++ code with Swift. The only way you can do it is by using an Objective-C/Objective-C++ wrapper for your C/C++ code. And that's when you're going to need Objective-C knowledge.
But actually it's possible, if I'm not mistaken, to use just Swift for development. So, my advice is the following: if you really hate Objective-C, use Swift as the main development language, but learn Objective-C basics in order to be able to read it (at least). Just in case.
Credit Goes to: stackoverflow.com
Related question with same questions but different answers
- [__NSARRAYM OBJECTATINDEX:]: INDEX 2 BEYOND BOUNDS [0 .. 1] IN IOS
- NSMUTABLEDICTIONARY ORDER DIFFERENT IN IOS8 (REVERSED FROM IOS7) IN IOS
- HOW TO ADD A NSDICTIONARY OBJECT TO NSMUTABLEARRAY? IN IOS
- HOW DO YOU ACCESS AN OBJECT'S FIELDS FROM A PARSE QUERY RESULT IN SWIFT? IN IOS
- HOW TO CONFIGURE UITABLEVIEWCELL IN WILLDISPLAYCELL METHOD? IN IOS
- CHILDNODE WITH ALPHA HIGHER THAN PARENT IN IOS
- VALIDATE TEXTFIELD LENGTH IN IOS
- ERROR WHILE DOING SIGN IN WITH FACEBOOK IN IOS
- REALM LIST PROPERTY NOT SAVING DATA IN IOS
- UITAPGESTURERECOGNIZER STATIC METHOD CRASHES IN IOS
- BEST RESTKIT SETUP IN IOS
- HOW TO STYLE THE IOS6 FILE INPUT CONTROL? IN IOS
- WHY I AM NOT GETTING MASTER BRANCH IN XCODE SOURCE CONTROL TO UPLOAD PROJECT IN GITHUB FOR THE FIRST TIME IN SWIFT IN IOS
- HOW TO REMOVE USER DEFAULTS IN IOS
- SPRITEKIT CRASHING WITH STD::OUT_OF_RANGE: VECTOR ISSUE IN IOS
- WHY SHOULD DEVELOPER CARE WHETHER IOS DEVICE WAS JAILBROKEN IN IOS
- PERFORMSELECTOR IN CATEGORY OF SUPERCLASS FAILS WHEN CALLING METHOD AVAILABLE IN SPECIFIC SUBCLASS IN IOS
- UICOLLECTIONVIEW ALWAYS ONE ITEM BEHIND IN IOS
- HOW TO SCROLL IMAGES HORIZONTALLY IN IOS SWIFT IN IOS
- REMOVING WARNINGS IN IOS
- SHOW SVPROGRESSHUD WHILE UIWEBVIEW LOADS IN IOS
- PHONE APPLICATIONS WRITTEN IN C++ IN IOS
- OBJECTIVE C - DIFFERENTIATE BETWEEN NIL AND 'NO VALUE' IN IOS
- PASSING DATA BETWEEN VIEW CONTROLLERS (YES, I KNOW... ) IN IOS
- GET X, Y POSITION OF VALUE ON UISLIDER IN IOS
- HOW TO ANIMATE CORRECTLY UISEARCHBAR WITHIN A CUSTOM VIEW WITH A HEADER VIEW AND A UITABLEVIEW? IN IOS
- WHY DOES XCODE AUTO-FIX CREATE TWO METHODS WITH THE SAME NAME `FUNC TABLEVIEW`? IN IOS
- IN THE IOS SDK, HOW CAN I HELP MY USERS SEND MMS INTERMIXED WITH SMS FROM MY APP? IN IOS
- HOW TO ASK USER AGAIN TO REGISTER FOR REMOTENOTIFICATIONS? IN IOS
- ACCESSING VALUES FROM JSON RESPONSE IN SWIFT IOS IN IOS
- HOW TO GET "NEWEST RECORD" WHEN FETCHING RECORD WITH MAGICAL RECORD IN IOS
- FORCE NSDICTIONARY TO RELEASE MEMORY IN IOS
- HOW DO I ADD AN IDENTIFIER TO AUTO LAYOUT ANCHOR CONSTRAINTS? IN IOS