Pass parameter on selector of UIButton

前端 未结 3 1821
旧时难觅i
旧时难觅i 2021-01-25 09:09

I have a detailDisclousure button on the callout of a MKAnnotation. When this button is pressed I need to call a method passing a parameter that identi

3条回答
  •  余生分开走
    2021-01-25 09:38

    I think you can add a property(which is (Annotation *)annotation) in .h file. Then you can use annotation in the "-(void)goToViewWithAnnotation" method. Or you can customized a new button which inherits UIControl

提交回复
热议问题