开发者

How to identify which imageview will be selected?

I am developing one application.

In that I have used the three uiimageviews.

And used the UITapGesture to open the photo library.

My problem is how to identify which imageview is tapped, for setting the selected image in photo library.

Please tell m开发者_StackOverflowe how to identify that one?


Use tag property of imageview and then

-(void)doAction:(UITapGestureRecognizer *)recognizer {
NSLog(@"Imageview :%d",recognizer.view.tag)

}

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜