gpt4 book ai didi

ios - NSBundle 和 CFbundle 有什么区别?

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:41:11 26 4
gpt4 key购买 nike

 NSBundle* mainBundle = [NSBundle mainBundle];

我知道我们可以使用上面的方法来获取 mainBundle

但是我看到有人用

CFBundleRef mainBundle = CFBundleGetMainBundle();

这两者有什么区别吗?

最佳答案

NSBundleCFBundleRef 不是免费桥接的,所以你不能说它们是相同的,但它们都做同样的工作并提供相同的服务特征。您使用哪个应该只取决于您将如何在当前代码中使用它。

关于ios - NSBundle 和 CFbundle 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18254673/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com