这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@DiogoAndre
Copy link

Add support to MKAnnotationView.detailCalloutAccessoryView, that was introduced in iOS 9.0.

Kind of related to #29

WWDC 2015 Session 206 - What's New in MapKit

@andrewhavens
Copy link

andrewhavens commented Apr 15, 2016

Nice! Thanks @DiogoAndre!

Update: here's the exact time where they mention the callout updates: https://developer.apple.com/videos/play/wwdc2015/206/?time=185

view.rightCalloutAccessoryView = params[:right_accessory]
end
if params[:detail_accessory]
view.detailCalloutAccessoryView = params[:detail_accessory]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious, will this raise a No Method error in iOS earlier than 9.0?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really. it actually kind of works using UIImageView.alloc.initWithImage(UIImage.imageNamed("Default-568h"))as the view
screen shot 2016-04-15 at 18 22 12

@DiogoAndre DiogoAndre closed this Dec 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants