Как изменить поля в SMCalloutView
Я использую Mapbox SDK и SMCalloutView
callout.view.frame = CGRectMake(0, 0, 300, 115);
SMCalloutView *smcallout = [[SMCalloutView alloc] init];
smcallout.contentView = callout.view;
[smcallout presentCalloutFromRect:smcallout.frame inLayer:annotation.layer constrainedToLayer:map.layer animated:YES];
Как я могу изменить поля от contentView до границ calloutView?
2 ответа
Решение
Вы должны перезаписать SMCalloutView, как я сделал здесь:
https://github.com/Olinguito/YoIntervengoiOS/blob/master/Pods/SMCalloutView/SMCalloutView.m#L18
Надеюсь, это поможет вам.
Вы можете изменить UIEdgeInsets contentView.
[calloutView setContentViewInset:UIEdgeInsetsMake(0.0f, 0.0f, 0.0f, 0.0f)];