默认标注填充左侧附件视图的颜色
Default callout fill in the color of the left accessory view
有没有办法让标注的左侧附件视图只用背景色填充视图的其余部分?
我目前正在做这个
let leftView = UIImageView(image: UIImage(named: "leaf32"))
leftView.backgroundColor = UIColor.redColor()
anView.leftCalloutAccessoryView = leftView
我想让背景填充为苹果地图默认标注中的蓝色。
这样做:
let leftView = UIImageView(image: UIImage(named: "leaf32"))
leftView.frame = CGRect(x: 0, y: 0, width: 50, height: 50)
leftView.backgroundColor = UIColor.redColor()
anView.leftCalloutAccessoryView = leftView
有没有办法让标注的左侧附件视图只用背景色填充视图的其余部分?
我目前正在做这个
let leftView = UIImageView(image: UIImage(named: "leaf32"))
leftView.backgroundColor = UIColor.redColor()
anView.leftCalloutAccessoryView = leftView
我想让背景填充为苹果地图默认标注中的蓝色。
这样做:
let leftView = UIImageView(image: UIImage(named: "leaf32"))
leftView.frame = CGRect(x: 0, y: 0, width: 50, height: 50)
leftView.backgroundColor = UIColor.redColor()
anView.leftCalloutAccessoryView = leftView