@import vs #import - iOS 7

后端 未结 6 1135
小蘑菇
小蘑菇 2020-11-22 14:44

I am playing around with some of the new iOS 7 features and working with some of the Image Effects as discussed in the WWDC video \"Implementing Engaging UI on iOS\". For pr

6条回答
  •  花落未央
    2020-11-22 15:10

    There is a few benefits of using modules. You can use it only with Apple's framework unless module map is created. @import is a bit similar to pre-compiling headers files when added to .pch file which is a way to tune app the compilation process. Additionally you do not have to add libraries in the old way, using @import is much faster and efficient in fact. If you still look for a nice reference I will highly recommend you reading this article.

提交回复
热议问题