我在 iOS 9 中使用 Swift。无论我选择什么按钮类型,除了 ContactAdd,只会呈现信息图标。我正在尝试在地图视图中获取标注右侧的 DetailDisclosure 图标。这是代码:
let rightButton = UIButton(type: UIButtonType.DetailDisclosure);
rightButton.addTarget(self, action: "buttonTapped:", forControlEvents: UIControlEvents.TouchUpInside)
annotationView.rightCalloutAccessoryView = rightButton;