Pass Parameter with UITapGestureRecognizer

后端 未结 3 1040
Happy的楠姐
Happy的楠姐 2021-02-18 15:51

Is there any way i can pass parameters with UITapGestureRecognizer? I\'ve seen this answered for objective-c but couldn\'t find an answer for swift

test.userInte         


        
3条回答
  •  不要未来只要你来
    2021-02-18 16:29

    The best way is to determind the parameter when the func imageTapped64is fired. You can get you params via the view (take a look to @Developer Sheldon answer) or in many other ways.

提交回复
热议问题