iphone - -ObjC 链接器标志有什么作用?

标签 iphone objective-c ios compiler-construction

我有一个可以使用和不使用链接器标志的应用程序。但是,如果没有链接器标志,我在向 View 中添加数据时会得到非常不同的行为。

最佳答案

This flag causes the linker to load every object file in the library that defines an Objective-C class or category. While this option will typically result in a larger executable (due to additional object code loaded into the application), it will allow the successful creation of effective Objective-C static libraries that contain categories on existing classes.

从此Technical Q&A

关于iphone - -ObjC 链接器标志有什么作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6629979/

相关文章:

iphone - 是否可以使用 "large"框架垂直对齐标签内的文本

objective-c - 在 Objective C 中自动插入标题文档注释?

iphone - iOS 应用程序窗口未初始化

ios - 具有 UITapGestureRecognizer 操作的 UICollectionViewCell 仅在状态 3 下调用一次

c++ - 如何在cocos2dx中使用CCTargetedTouchDelegate?

iphone - UIView在removeFromSuperview后继续存在

iPhone iOS 以编程方式生成星形、旭日形或多边形 UIBezierPath

iphone - 预编译 prefix.pch 时出现奇怪的编译器警告

iphone - 在 Facebook 墙上添加照片

ios - 清除 NSUserDefaults