Pass a NSDictionary as parameter to UITapGestureRecognizer

后端 未结 3 1577
悲&欢浪女
悲&欢浪女 2020-12-11 08:31

I want to pass a NSArray as a parameter to UITapGestureRecognizer and access it in downloadOptionPressed method. How can I do this ?

The

3条回答
  •  囚心锁ツ
    2020-12-11 08:53

    You can use associated object to pass argument along with tap gesture instance.

    You can check this objective-c-associated-objects

    It will solve your problem.

提交回复
热议问题