Recently learning Swift, I would like to use Swift in previous OC projects
At the beginning, the start is relatively fast, the following record a few simple pits.
1. As a result of the contact Swfit some tutorials, so prepare to use swift inside the existing OC, follow the tutorial, no problem, but I use Swift in the original OC, how to compile does not pass,
At the beginning of the error, prompted to find a variety of classes, and then carefully found that the original can not be used in the same project in the OC code to use the Swfit code, and in the SWIFT code using OC, similar to the feeling of a dead loop
You need to compile the project name-swift.h before you can.
2. When the original OC in the conversion method, the main types need to add! , or you often get an error.
3. When using Xib with Swift, there are always inexplicable nsscanner nil errors that have not yet been found, and more when using ScrollView. Temporarily record the reason for subsequent re-search
Issues with Swift and OC mixed compilation