ringa_lee2017-04-17 17:20:19
To get started with OC, you need to understand OC and then learn swift in depth. The core is to be familiar with the cocoa touch framework. So both need to be considered.
伊谢尔伦2017-04-17 17:20:19
You usually see this kind of problem on many websites. For students who are still in school, or new professionals who have just entered the company, these are sometimes indeed a problem! I feel that I also came from this problem! When I was in college, I learned all about theory and basics, and students who were not majoring in software engineering generally wanted to work in software development! I will also talk about this issue based on my personal understanding and the teachings given to me by some previous experts! Software development is a project. The entire cycle starts from demand analysis and design, to prototype design, to functional module design, to function implementation, to system integration testing, to release and maintenance. This series of steps are all missing. Not available! It can be seen from this that the implementation of functions only accounts for a small proportion of software development! Some people may be very upset when they hear this, saying that if there is no basis for writing code, all designs are empty, which is nonsense! But finding a developer who can only write code is too simple for the company, especially now that training institutions are recruiting people in batches, which has a huge impact on people with formal academic backgrounds. Language is just a tool we use for implementation. It does not mean that you can do development for a lifetime by learning any language! Therefore, I recommend that everyone learn more about the concept of software engineering. In addition, when implementing functions, determine the development language according to project needs and customer needs! As far as our problem is concerned, OC is a stable development language. If you are doing a stable project that requires long-term maintenance, OC language is very suitable and the maintenance cost is very low! As a new language launched by Apple, Swift language is very popular now and is also open source. However, there are too many unstable factors for this language that has not yet reached a large scale. It is very likely that a certain version of Swift will completely abandon the previous language. All the underlying code, I believe Apple is likely to be able to do such a thing! And if, on the basis of stable development, you want to learn another popular language as a way to sublimate your abilities and lay the foundation for future promotions and salary increases, then you can also learn this language! But the difference in languages is only in syntax and implementation methods! The underlying principles are mostly the same! So understanding a language deeply is the way to go
ringa_lee2017-04-17 17:20:19
If you are interested and don’t have big project needs, Swift is better, and it is the future trend.
阿神2017-04-17 17:20:19
I learned swift first, but when I actually developed it, I found that the projects to be maintained were written in oc. So I went back to learn oc again. Later, as my oc learning deepened, I gradually understood some of the confusions I had when learning swift.
If you want to develop iOS applications, the most important thing is to be familiar with the Cocoa touch framework, whether it is oc or swift, as long as you can use it.
Of course, my suggestion is to learn oc first. After reading a few books and becoming familiar with the Cocoa touch framework, it is not too late to learn swift.
巴扎黑2017-04-17 17:20:19
Most frameworks stay in oc, although the swift version is also being updated. The future trend is to switch to swift. However, the swift language is not yet perfect. For example, oc's reflection is much better than that of swift.