UIP纸板尺寸

发布于 2024-09-15 01:27:46 字数 471 浏览 0 评论 0原文

自 iOS4+ 以来,这不再相关 - 所以请停止投票!或者至少解释一下你的反对票

我正在尝试为应用程序的精简版到完整版提供升级路径,该路径可以存储无限量的数据(我不想在应用程序内购买)。

我希望能够使用自定义 URL 进行升级,而不需要在线状态来缓存数据。

因此正在考虑使用 UIPasteboard 对象。

有谁知道或对存储到 UIPasteboard 的数据的最大可能大小进行过任何调查吗?我找不到关于此的苹果文档。

这会因设备而异吗?即RAM是否有限?

我尝试了 50MB 的文件,并且知道这会失败(即使在模拟器中),尽管 5MB 的文件没问题。在您使用 dataForPasteboardType 获取数据之前,无法知道它是否失败:

另外,是否有人做过 2 个应用程序自定义 URL 来执行应用程序间通信的一种请求/响应?我想我可以通过这种方式支持任意大小的数据......

this is no longer relevant since iOS4+ - so please stop downvoting! or at least explain your downvotes

I am trying to do an upgrade path for a lite to full version of an application, that can store an indefinite amount of data (I dont want to do in app purchase).

I would like to be able to upgrade using a custom url without needing an online presence to cache the data to.

So was thinking of using a UIPasteboard object.

Does anyone know, or done any investigations on the max possible size of data stored to a UIPasteboard? There seems to be no apple documentation, that i can find, regarding this.

Will this vary from device to device? i.e. is it RAM limited?

I tried a 50MB file and know this fails (even in simulator) though a 5 MB file is OK. There is no way of knowing if it has failed until you come to get the data with dataForPasteboardType:

Also, has anyone done 2 app custom URLs that will do a kind of request/response inter app comms? I was thinking that i could support arbitrary sized data this way...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

别在捏我脸啦 2024-09-22 01:27:46

我会回答我自己的问题,经过一番调查后,它是8MB。设备独立。

我还设法支持使用 2 个自定义 URL 和应用程序之间递归的 openURL 方法来支持任意大量数据的升级。测试最大为 100MB - 它看起来不太漂亮,因为它打开每个应用程序 12 次!

I'll answer my own question, after doing some investigation, it's 8MB. Device independent.

I have also managed to support upgrade of arbitrarily large amounts of data using 2 custom URLs and the openURL method recursively between apps. Tested up to 100MB - it doesn't look too pretty because it opens each app 12 times!

开始看清了 2024-09-22 01:27:46

我很惊讶有任何限制。我不明白为什么/怎么会有。您为 UIPasteboard 提供一个字典,其中保留了指向您的数据的指针。谁在乎它有多大?我怀疑如果您检测到限制,它实际上是对 NSString、NSData 或您提供给 UIPasteboard 的任何内容的大小的限制。

I'm surprised there's any limit. I don't see why/how there would be. You give UIPasteboard a dictionary with a retained pointer to your data. Who cares how big it is? I suspect if you are detecting a limit, it is really a limit on the size of an NSString, or NSData or whatever it is you're supplying to UIPasteboard.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文