开发者

route info in mapkit in iphone sdk

开发者 https://www.devze.com 2022-12-30 18:19 出处:网络
I want to write some info开发者_运维百科rmation in the navigation bar about a route..just as the default application does, like distance between the current location and the selected destination, dire

I want to write some info开发者_运维百科rmation in the navigation bar about a route..just as the default application does, like distance between the current location and the selected destination, direction etc.

How would i know when a certain pin is clicked as to provide the respective info.

Thanks in advance.


When you implement MKAnotationView there is a method:

- (void)setSelected:(BOOL)selected animated:(BOOL)animated

As far as I understand, it is being called exactly when you want it to.

0

精彩评论

暂无评论...
验证码 换一张
取 消