Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>1 . You subclass the UIImageView and override the touch methods:</p> <blockquote> <ul> <li>(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event</li> <li>(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event</li> <li>(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event</li> <li>(void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event</li> </ul> </blockquote> <p>2 . You add and UIButton to the UIImageView <code>[yourImageView addSubview:yourButton];</code> then set the center of your button to touch coordinates.</p> <p>3 . Just present an popover when user taps on an button. (You can set tag property for buttons to know which button is tapped)</p> <p>4 . Save data to an plist to documents directory if is not to complex ore use core data.</p> <p>Good Luck. Just post comments if you need more help.</p> <p>Edit: you need to set the user userInteractionEnabled to YES for the UIImageView.</p> <blockquote> <p>userInteractionEnabled A Boolean value that determines whether user events are ignored and removed from the event queue.</p> <p>@property(nonatomic, getter=isUserInteractionEnabled) BOOL userInteractionEnabled Discussion This property is inherited from the UIView parent class. This class changes the default value of this property to NO.</p> <p>Availability Available in iOS 2.0 and later. Declared In UIImageView.h</p> </blockquote> <p>From <a href="http://developer.apple.com/library/ios/#documentation/uikit/reference/UIImageView_Class/Reference/Reference.html%23//apple_ref/occ/instp/UIImageView/userInteractionEnabled" rel="nofollow">UIImageView Class Reference</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload