私のカスタム注釈があります。アニメーション作成時に注釈をタップできません。
UIView.animateWithDuration(duration, delay: 0, options: .CurveLinear, animations: {
customAnnotation.coordinate = newCoordinate
とこの問題が発生している間、私はMapViewのを呼び出すために、それをタップすることはできません:私は時々それをアニメーション化didSelectAnnotationView
私もサブビューとしてUIButtonを追加しました:
let button = UIButton(frame: CGRect(x: 7.25, y: 17, width: 37, height: 15))
let text = customAnnotation.displayedName
button.setTitle(text, forState: .Normal)
button.backgroundColor = UIColor.blackColor()
button.setTitleColor(UIColor.greenColor(), forState: .Normal)
button.addTarget(self, action: "buttonTapped:", forControlEvents: .TouchUpInside)
customAnnotationView?.addSubview(button)
mapViewView:viewForAnnotation内の
が動作しません。 アイデア