Detect if device properly displays UIVisualEffectView?

后端 未结 2 980
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-04 07:17

My app utilizes UIVisualEffectView to blur the background just like Control Center. But I discovered the iPad 2 (and Retina iPad) which can run iOS 8 isn\'t pow

2条回答
  •  长发绾君心
    2021-01-04 07:58

    Apple internally uses [UIDevice _graphicsQuality] for these kind of checks. In the following post I propose a method that does the same using only public API: https://stackoverflow.com/a/27879304/1914276

提交回复
热议问题