i trying add annotation map when there long press touch been done user. have implemented code shown in image action method reason(i not able find! :( ) not been called. have checked few places , seems done way only. if can please tell doing wrong great.
currently app terminating , giving nsinvalidargumentexception.
thanks in advance! :)
you need change line :
let recognizer = uilongpressgesturerecognizer(target: mapcontroller, action: "action:")
to
let recognizer = uilongpressgesturerecognizer(target: self, action: "action:")
and work. method in self ( annotation class) itself.
Comments
Post a Comment