ios - Starting up in a different view controller depending on whether the iPad is in accessibility mode -
first of possible start app in different view controller. thinking if there way app detect whether in kind of accessibility mode before starting app. possible , how go doing it? or have kind of workaround?
while drawing attention david's question (do think needed?), there ways determine whether voiceover running , when changes.
uiaccessibilityisvoiceoverrunning()
: determine if voiceover running.
uiaccessibilityvoiceoverstatuschanged
: posted uikit when voiceover starts or stops.
the initial detection of voiceover performed in application delegate's didfinishlaunchingwithoptions:
method, can display corresponding viewcontroller.
however, david points out, in case of voiceover toggle, you'll need pick right action. might not want, since can lead complex situations.
this article, same david, provides great insight in uiaccessibility
framework.
update
instead of having different viewcontrollers accessibility enabled , disabled, respectively, let editing behaviour depend on flag, say, accessibilityenabled
. flag set @ app start depending on uiaccessibilityisvoiceoverrunning()
, changed accordingly whenever uiaccessibilityvoiceoverstatuschanged
notification sent.
then given viewcontroller can decide whether editing mode should enabled, instead of having multiple viewcontrollers similar responsibilities each view.
Comments
Post a Comment