How to pass variable to new method I call when using @selector(methodname)

前端 未结 4 1192
自闭症患者
自闭症患者 2020-12-22 05:58

Ok very quick question. I am adding annotations to my iOS using MKMapAnnotation. I create a int and an annotation with a disclosure button Which calls the method loadPano l

4条回答
  •  心在旅途
    2020-12-22 06:54

    In the general case, you can create an instance of NSInvocation with your target, selector, and whatever parameters it needs. Then you call the invocation's -invoke method to send the message to the target.

提交回复
热议问题