It’s a new feature called Modules or “semantic import”. There’s more info in the WWDC 2013 videos for Session 205 and 404. It’s kind of a better implementation of the pre-compiled headers. You can use modules with any of the system frameworks in iOS 7 and Mavericks. Modules are a packaging together of the framework executable and it’s headers and are touted as being safer and more efficient than #import.
One of the big advantages of using @import is that you don’t need to add the framework in the project settings, it’s done automatically. That means that you can skip the step where you click the plus button and search for the framework (golden toolbox), then move it to the “Frameworks” group. It will save many developers from the cryptic “Linker error” messages.
大概意思是:
这是一种新的引用方式,可以引用系统的framework中的文件,更好的预编译,而且比#import更安全和高效。
当你使用@import时,你可以省去在“project settings”中设置的手动添加framework的过程,从而减少引用错误。
介绍了iOS 7和Mavericks中引入的新特性——Modules,它是一种改进的预编译头实现方式,使得开发者能够更高效地引用系统framework。通过使用@import指令,可以自动完成framework的链接,简化开发流程并减少潜在的链接错误。
616

被折叠的 条评论
为什么被折叠?



