Interactive Ink

how to enable scroll and zoom

Hello , I'm using the IISDK , ios-swift

In my app, I want to control the zooming and scroll ,How can I set "setAutoScrollEnabled = false","setAutoZoomEnabled = false"


1 Comment


If you want to disable scroll and/or zoom you can modify the EditorViewController inputMode property setter (find the `setInputMode:` method in that you'll find in the "Development Pods" / "MyScriptInteractiveInk-UIReferenceImplementation" / "ViewControllers" group, in the "Pods" project). You can just set `self.panGestureRecognizer.enabled = NO` and/or `self.pinchGestureRecognizer.enabled = NO` in the switch case that corresponds to the input mode you use.

If it suits your needs we may consider adding properties to enable or disable those from the outside in a future version.


Login or Signup to post a comment