How can I detect whether a user has an iPhone 6 Plus in standard or zoomed mode?

后端 未结 5 1033
时光取名叫无心
时光取名叫无心 2020-11-27 16:59

How can I detect whether a user has an iPhone 6 Plus in standard or zoomed mode? Is this possible?

I\'ve tried [UIScreen mainScreen].scale and it report

5条回答
  •  孤街浪徒
    2020-11-27 17:44

    There's a new member

    [[UIScreen mainScreen] nativeScale]
    

    which should do what you want. It's only available on iOS 8, so you'll need to guard it

提交回复
热议问题