Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to detect if the iPhone is in inverse color mode?

You know how in accessibility, the user can set the home button to triple-click and make that the "inverse color mode"? Is there a way for your app to detect if the phone is in the inverse color mode? Thanks.

like image 984
CommaToast Avatar asked Sep 30 '13 05:09

CommaToast


People also ask

Does iPhone have color inversion?

You can invert all the colors on your iPhone using the Accessibility menu in the Settings app. There are two ways to invert your iPhone's colors: Using Smart Invert, or Classic Invert. If you set up an Accessibility Shortcut, you can quickly turn on inverted colors by triple-clicking the Power button.

What is inverse appearance on iPhone?

Since there are two options for inverting colors on iPhone, you'll want to try each version—Smart Invert and Classic Invert. Smart Invert reverses colors on the display except for images, video, and other features (as seen below). Meanwhile, the Classic Invert reverses all of the colors on your iPhone screen.

How do I get my phone to stop inverting colors?

In the "Accessibility" menu, under "Display," find the switch labeled "Color inversion" and toggle to the on position. 4. If your phone has the ability to do so, pull up the notification center at any time and tap "Invert colors" to turn color inversion on and off.


1 Answers

Yes, and it's simple. You can call

UIAccessibilityIsInvertColorsEnabled();

which return a BOOL for whether or not inverted colors is currently on.

You can also observe

UIAccessibilityInvertColorsStatusDidChangeNotification

to get notified when the user turns on or off inverted colors.

like image 124
David Rönnqvist Avatar answered Sep 28 '22 06:09

David Rönnqvist