IOS: learning notes, mixed Summary of Swift and Objective-C, and iosobjective-c
Summary of interaction between Swift and Objective-C
Using Objective-C in Swift (simple)
When you create an OjbC file, XCode prompts you to create a XXX-Bridging-Header.h File
Import the Objective-C class that needs to be introduced to Swift on the created XXX-Bridging-Header.h
#import "Need.h"
Then you can use it in Swfit.
Using Swift in Ojbective-C (very simple)
Add the following content to the corresponding OjbC file:
#import "XXX-Swift.h"
Then you can use the classes defined in Swift in the following code.
Where are ios study notes? Is it suitable for self-developed ios?
If you do not need to enter the training institution, you can learn it. If you do not need to pay the money, you must learn it. However, it depends on whether you have the self-control ability.
IOS applications are 1.4 times more than Android, while system developers are 0.38 times more than Android. This shows that the talent gap in the iOS industry is quite large. Because of this, the market is extremely pressing for Objective-C and C ++ developers, making the two occupations quite positive in employment trends, finally, it pushed the iOS industry to stride into the sunrise industry. In the current market environment that is in short supply, the increase in iOS talent salary is much higher than that of Android.
The next 10 years will be the mobile Internet era. This conclusion has become a consensus in the industry.
1: deploying iOS applications is a required strategic choice for enterprises.
2: the involvement of large enterprises will aggravate the shortage of iOS Talents
3: Code workers are rejected in the iOS field. The so-called experts are not only proficient in technology, but also understand users, the market, and design. The iOS field is dominated by compound and innovative talents.
Advantages and disadvantages of writing IOS in C/C ++/Objective-C
The library concept is usually used in development, that is, to build your own software with the code that Apple has already written. However, this library is written in Objective-c, which restricts the language to a large extent.
1. c language is actually not written in c, because development is usually object-oriented, while c ++/Objective-c supports object-oriented, therefore, it is better to use c ++/Oc as a whole. As for the reason why object-oriented is used, it is easy to build and reuse. Of course, some core things have to be written in c. Why, efficiency, such as encoding conversion.
2. c ++ in fact c ++ is very good, but because of library reasons, writing UI and other inconvenient, with not much on, of course, such as cocos2d-x is written with c ++, so the software built by it is basically it.
3. Objective-c because the UIkit, CFFramework... cocos2d for iphone and other frameworks are written in this language, the language is used by default.
Finally, there is nothing better about the language itself, but it is just a tool, hoping to help you.