开发者

How to identify which imageview will be selected?

开发者 https://www.devze.com 2023-03-23 09:03 出处:网络
I am developing one application. In that I have used the three uiimageviews. And used the UITapGesture to open the photo library.

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

精彩评论

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

关注公众号