iphone - 在主 Bundle 之外访问

标签 iphone ios nsbundle

我想要一个功能,我的应用程序可以在其中访问它自己的包之外的资源,例如:有一堆“3d 模型”保存在 iPhone 内存中的某个地方(而不是在应用程序包中),在运行时我想加载它并在我的应用程序中显示它,

  1. 应用程序启动。
  2. 用户可以选择一些模型,比如海豚。
  3. 应用程序访问该模型(它不在应用程序包中,而是在 iPhone 的某个地方之外),加载它。
  4. 应用程序显示模型。

这可能吗? 在此先感谢您的帮助!

最佳答案

您可以为此目的使用应用程序的沙箱。阅读File System Programming Guide获取更多信息。

关于iphone - 在主 Bundle 之外访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18820880/

相关文章:

ios - SIP 和 Webrtc 集成 iOS

ios - MKMapView 在放大时更改引脚

ios - Swift 3.0 使用表格 View 显示和添加评论

ios - 从非 mainBundle 的 NSBundle 获取文件路径

objective-c - 我应该如何处理 bundle 中的头文件?

iphone - 鉴于此代码,为什么后退按钮不会出现(UINavigationController 问题)

iphone - core-plot - 动态刷新图表 + iPad

ios - Apple Watch 圆形进度(或径向弧形进度),图像错误

iOS订阅: How to handle INTERACTIVE_RENEWAL notification 10 minutes after INITIAL_BUY?

ios - 在包 NSBundle 中找不到名为 'Storyboard.storyboard' 的 Storyboard