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

我有一个可以使用和不使用链接器标志的应用程序。但是,如果没有链接器标志,我在向 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

https://stackoverflow.com/questions/6629979/

相关文章:

objective-c - 如何将 NSNumber 转换为 NSString

iphone - 通过保持纵横比和宽度调整 UIImage 的大小

ios - 如何调整 UIButton 的 imageSize?

iphone - 在 iPhone TableView 单元格的单元格右侧添加小箭头

ios - 如何根据文本长度计算 UILabel 宽度?

ios - 我可以更改 NSLayoutConstraint 的乘数属性吗?

objective-c - 从 NSString 中删除所有空格

objective-c - xcode4中框架和静态库的区别,以及如何调用它们

ios - 获取 UITableViewCell 内的按钮单击

ios - 如何截取 UIView 的屏幕截图?