I am developing an application.In that I want to set the image for imageview.So when iam click on imageview,in that time only library will be open.For that i use the below method.But library will be opened at every click at every where.
-(void)touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event.
But i want to open the library when iam click on imageview only.Please tell me how to solve this one.
Set
myImageView.userInteractionEnabled = YESand then use aUITapGestureRecognizer.