iOS Voiceover status iOS Voiceover status ios ios

iOS Voiceover status


In ViewDIdLoad

[[NSNotificationCenter defaultCenter] addObserver:self                                         selector:@selector(voiceOverStatusChanged)                                             name:UIAccessibilityVoiceOverStatusChanged                                           object:nil];- (void)voiceOverStatusChanged{    if(!UIAccessibilityIsVoiceOverRunning())    {        //do your changes    }}


For Swift 4.2 and newer versions, you can check the following boolean provided by UIKit:

UIAccessibility.isVoiceOverRunning