In iOS7, swiping up from the bottom of the screen or down from the top of the screen slides a "glass screen" on top of the app you are using. In many games, it is very frustrating.
As a user, you can turn off this behavior in apps, but this is a system-wide change.
Angry Birds has small triangles pop up when a top/bottom swipe is detected, which is not a perfect fix, but something already.
Is there any better solution? What API/call to use?
To get the same behaviour in iOS 11, you must implement preferredScreenEdgesDeferringSystemGestures
on your view controller:
- (UIRectEdge)preferredScreenEdgesDeferringSystemGestures {
return UIRectEdgeAll;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With