Any ways to detect the new Reachability gesture of iOS8 in Objective-C?
The gesture is activated double tapping the TouchID button on the iPhone6 and iPhone6Plus.
Any ways to detect the new Reachability gesture of iOS8 in Objective-C?
The gesture is activated double tapping the TouchID button on the iPhone6 and iPhone6Plus.
There are no public APIs for it.
There are two related private API methods on UIApplication
I can find (using either of these should get your app rejected from the App Store):
_setReachabilitySupported:
, which presumably would en/disable reachability (like Spotlight)_deactivateReachability
, which would return the view to the normal place on the screenI don't see anything that informs your application that the user has performed the gesture, however.
You could also experiment with subclassing UIWindow
and overriding setFrame:
. Set a breakpoint in this method, and if it fires when you enable Reachability, you can look at the stack trace for more information.