标签: ios4 mapkit mkannotation
我是MapKit的新手,请原谅我,如果我在提问时没有意义的话。我想复制iPhone和iPod Touch上的默认Map应用程序。有这个功能,我感兴趣,但似乎无法在这里找到它,谷歌,其他iPhone应用程序网站。如果要运行默认的地图应用程序,则注释标题包含图像和按钮。如何同时处理图像和按钮?我应该拨打的方法名称是什么?
提前致谢!
答案 0 :(得分:2)
它们被称为rightCalloutAccessoryView和leftCalloutAccessoryView。
http://developer.apple.com/library/iOS/documentation/MapKit/Reference/MKAnnotationView_Class/Reference/Reference.html#//apple_ref/occ/instp/MKAnnotationView/leftCalloutAccessoryView
http://developer.apple.com/library/iOS/documentation/MapKit/Reference/MKAnnotationView_Class/Reference/Reference.html#//apple_ref/occ/instp/MKAnnotationView/rightCalloutAccessoryView