What does the -ObjC linker flag do?(-ObjC 链接器标志有什么作用?)
问题描述
我有一个可以使用和不使用链接器标志的应用程序.但是,如果没有链接器标志,我在向视图中添加数据时会得到非常不同的行为.
I have an app that works with and without the linker flag. However, without the linker flag, I get a very different behaviour when adding data to a view.
推荐答案
此标志使链接器加载库中定义了 Objective-C 类或类别的每个目标文件.虽然此选项通常会导致更大的可执行文件(由于将额外的目标代码加载到应用程序中),但它将允许成功创建包含现有类的类别的有效 Objective-C 静态库.
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.
从此技术问答
这篇关于-ObjC 链接器标志有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:-ObjC 链接器标志有什么作用?
基础教程推荐
- 如何从 logcat 中删除旧数据? 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
