ios - 我可以使用新的 @import 指令导入自定义框架吗?

标签 ios objective-c xcode

我很高兴看到 Objective-C 中的新 @import 指令,但我的印象是它当前无法用于导入自定义框架 ( one source )。但我刚刚在 Xcode 6 中创建了一个自定义 Cocoa 框架 ( are these supported now? ),我可以@import 它就好了。给出了什么?

最佳答案

是的,您可以在 Xcode 6 中使用 @import。来自 New Features in Xcode 6 Beta :

User-defined modules. Developers are now able to define modules for their own Objective-C code, making it easier than ever for them to share frameworks across all their projects. By combining user-defined modules with Swift’s automatic creation of modules, the two languages work together seamlessly.

关于ios - 我可以使用新的 @import 指令导入自定义框架吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24141953/

相关文章:

ios - 从 super View 中删除的自动布局不会更新

ios - 如何在 CollectionView 中添加 SearchBar?

ios - Swift 中的 Alamofire 分段上传发布错误

ios - Today Widget 无法加载特定代码行

objective-c - UISplitViewController 设置 viewControllers 第二次崩溃

objective-c - 如何在 swift 中使用 IOPMAssertionCreateWithName

iphone - Xcode 4.3.1 "A valid provisioning profile for this executable was not found"

objective-c - 如何使 XCode 4 的逻辑单元测试从 Nib 正确初始化 UIViewController?

ios - 如何在 Swift 中加载 GIF 图像?

objective-c - 调用时 UITableView 部分不重新加载