Is there a way to detect that your iPhone app us running 2x/1x on an iPad?
I need to be able to detect the difference in points per inch for my app.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can detect the change by registering for the notification
_UIClassicApplicationWillChangeZoomNotificationNameand then handle the scale change using more or less the method outlined by @magma in his answer._UIClassicApplicationWillChangeZoomNotificationNamewill tell you when the “2x”/”1x” button has been used to change the scale.