Detect if device properly displays UIVisualEffectView?

ぃ、小莉子 提交于 2019-11-30 17:40:06

Check this WWDC session: http://asciiwwdc.com/2014/sessions/419

So, and to reiterate on what devices we don't blur and that we only do the tinting on the iPad 2 and iPad 3rd generation, we just apply the tint and we skip the blur steps.

[...]

On iPad 4th generation, iPad Air, iPad Mini, iPad Mini with retina display, iPhones and the iPod touch we do both the blur and the tinting.

I guess you have to resort to checking for the machine name:

#import <sys/utsname.h>
...

struct utsname systemInfo;
uname(&systemInfo);

NSString *deviceName = [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding];
...
Daniel Martín

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!