문제

Starting in iOS 7.1, Apple added a new feature called "Darken Colours" that, as it is expectable by the name darkens down the colour od UI-elements (Bar Button items, etc.)
Now, I'd like to darken down some other UI-elements in my app if the user has activated this feature.
Is there a possibility to check programmatically if this feature is enabled?

Thank you!

도움이 되었습니까?

해결책

In the iOS 8 SDK, Apple added several functions for detecting whether Accessibility options are enabled. (UIKit Function Reference: Accessibility)

Among them is one called UIAccessibilityDarkerSystemColorsEnabled

Swift:

func UIAccessibilityDarkerSystemColorsEnabled() -> Bool

Objective-C:

BOOL UIAccessibilityDarkerSystemColorsEnabled ( void );
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top