iphoneuiimageviewaccessibilityuiimageloupe

Zoom Loupe on UIImageView


Does anyone know of a way to implement the zoom loupe functionality of a UITextField on the iphone in a UIImage view?

Part of the app I'm building allows a user to draw a line on a UIImage, a process that might involve precision positioning of the points. In order to help the user, I want to provide the zoom loupe as seen when positioning the cursor in a UITextField. Does anyone have any idea as to how to do this? Any pointers to relevant docs?

Cheers!


Solution

  • This tutorial is well written and includes sample code:

    http://www.craftymind.com/2009/02/10/creating-the-loupe-or-magnifying-glass-effect-on-the-iphone/

    You need to comment out the line that imports CustomView.h and then it compiles and runs fine.