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
You can not pass values other than sender and eventType in target-action methods.
The action message may optionally include the sender and the event as parameters, in that order.
If that integerVariable is a constant, then you can set it as a tag for the control from which you are initiating that action (in your case it is disclosureButton).
or
You can take an instance variable in your class, and access that value in loadPano method.