Recently spent time on the evil to fill the official swift The book also looked from beginning to end, although some are not very clear. But you can only take the time to study later.
Okay, here we are. Learning Swift will naturally be like knowing how to write code. So the code is written. But in the middle of the day, suddenly thought of a problem, although Swift is the trend, but now still use OC AH. Do you want to use Swift to recreate a project????
So let's get started.
1. Create a project
2. Create an OC file (when we create an OC file, it will automatically create a bridging file)
This allows the OC class to be used in swift.
Next is the introduction of Swift in OC (only one step is required)
This completes the mixing of the two languages, of course, the third framework can also be used in this way, of course, I have only tried to afnetworking this.
If you find anything wrong, you are welcome to point out that if there is anything wrong, I hope you will point it out. After all, I'm still using OC for myself, and I haven't used Swift to get to the project.
Swift and OC Mixed