1
這裏是我的代碼:MKPinAnnotationView左鍵與圖片
UIButton* rightButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
UIButton* leftButton = [UIButton buttonWithType:UIButtonTypeInfoLight];
[rightButton setTitle:[(myLocation*)annotation url] forState:UIControlStateApplication];
[rightButton addTarget:self
action:@selector(showDetails:)
forControlEvents:UIControlEventTouchUpInside];
customPinView.rightCalloutAccessoryView = rightButton;
[leftButton setTitle:annotation.title forState:UIControlStateNormal];
customPinView.leftCalloutAccessoryView = leftButton;
它的工作原理,但似乎像在WITE一圈我左邊的按鈕。 我希望綠色汽車指示可用性獲取方向。 我該怎麼做?
在此先感謝
謝謝@apurv,我會盡力! – ghiboz