How to change margins in SMCalloutView
问题 I'm using Mapbox SDK and 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]; How can i change margins from contentView to borders of calloutView? 回答1: You have to overwrite the SMCalloutView as I did here: https://github.com/Olinguito/YoIntervengoiOS/blob/master/Pods