iOS 适配iPhone 13 Pro and iPad Pro的120Hz高刷新率

苹果官方文档:Optimizing ProMotion Refresh Rates for iPhone 13 Pro and iPad Pro

Enable Faster ProMotion Refresh Rates

If you don’t enable faster refresh rates for your app, your CADisplayLink callback might run at any of the speeds that the ProMotion display supports, at different times during normal GUI operations. In these cases, other animations in the system may affect the rate at which Core Animation calls your CADisplayLink callback. The rate at which Core Animation calls your CADisplayLink callback may not match the refresh rate hints that you provide to your CADisplayLink callback. Specifically, Core Animation won’t unlock any refresh rate that’s faster than the system’s default.

On iPhone 13 Pro or iPhone 13 Pro Max, add the following key to your Info.plist file to enable the full range of refresh rates for CADisplayLink callbacks and CAAnimationanimations in your app:

<key>CADisableMinimumFrameDurationOnPhone</key><true/>

Your app must use this key to access higher frame rates (above 60Hz) it sets in the preferredFrameRateRange hint API. The iPad Pro doesn’t require this special configuration.

页面中文翻译如下:






最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

友情链接更多精彩内容