标题几乎可以解释它。可能吗?我试图这样分配它:使用BarButtonItem作为MKPinAnnotationView的leftCallOutAccessoryView?
UIBarButtonItem *leftButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSave target:self action:@selector(saveAnnotation:)];
pinView.leftCalloutAccessoryView = leftButton;
我也尝试将它作为UIButton和作为UIView铸造。我想要这个的主要原因是因为我想要那个已经整合在UIBarButtonSystemItemSave中的小保存按钮。我怎样才能做到这一点?
我最终作出与UIBUttonTypeCustom一个UIButton有quicklymade savebutton的图像。谢谢。 – Martol1ni