I'am displaying a collection of images from code, This is my code:
UIImageView *addview;
myimgeview *addimageview =[[myimgeview alloc]initWithImage:[UIImage imageNamed:[NSString stringWithFormat:@"%@%d",PhotoName,i]] text:[textArray objectAtIndex:i]];
I want to handle the touch event on the addimageView programmatically.