tvOS 关于Apple TV开发的注意事项

前言

hihi,勇敢的小伙伴儿们大家好,八月,来更博客了~tvOS开发的一些注意事项分享给大家~

正文

有能力的小伙伴儿们可以去官方文档了解一下App Programming Guide for tvOS

接下来说几个tvOS的特别之处。

1.Apple tvOS引入了一下几个特有的框架。

2.资源限制

Apple TV上的应用没有持久化的本地存储。

There's an inconsistency regarding the Documents folder: you can create files in it when you run your app in the Simulator. But on the actual Apple TV, it just fails.

虽然可以短暂存储在Caches或Temporary文件夹下,但是依然会被系统删除。

You can write data to the Caches directory and the data should stay there as long as your app is running. But when your app exits, that data could be deleted by the system, so be prepared for it to be gone when your app launches again.

这意味着每个应用都应该将数据存放在iCloud,并且通过一种用户体验较好的方式将它们获取到。

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值