【发布时间】:2013-06-01 12:37:04
【问题描述】:
这是我的代码:
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 圆圈中的 i。 我希望绿色的汽车表明可以获取路线。 我该怎么做?
提前致谢
【问题讨论】:
标签: ios uibutton mkannotationview