Instead, you should refer to gestureRecognizers (defined in a UIView), some of them are used by scrolling,
determine which one is a recognition pinch and call removeGestureRecognizer: in scroll mode, then create your own and run it, add it using addGestureRecognizer:
all this is a public API, recognizers and in what order they are (currently), so the program is protected when accessing them
(this is a perfectly correct way to manipulate UIKit views, and Apple will not / should not have problems with it, although they do not guarantee its operation in any future version)
source share