From d9c6181f347c3d6b3cfd4bca7c5ded0d6d93e63d Mon Sep 17 00:00:00 2001 From: Jesse Bounds Date: Wed, 1 Jun 2016 17:36:07 -0700 Subject: [ios] Add annotation container view (#5194) Add a container view to hold annotations. This gets around a performance issue with `UIView:addSubview:` where adding views is N^2. It helps annotation views avoid cutting into callout views when the annotation views are transformed to be "flat". --- platform/ios/app/MBXAnnotationView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/ios/app/MBXAnnotationView.m') diff --git a/platform/ios/app/MBXAnnotationView.m b/platform/ios/app/MBXAnnotationView.m index 8cbe07a367..890881a316 100644 --- a/platform/ios/app/MBXAnnotationView.m +++ b/platform/ios/app/MBXAnnotationView.m @@ -12,7 +12,7 @@ [super layoutSubviews]; if (!self.centerView) { self.backgroundColor = [UIColor blueColor]; - self.centerView = [[UIView alloc] initWithFrame:CGRectInset(self.bounds, 5.0, 5.0)]; + self.centerView = [[UIView alloc] initWithFrame:CGRectInset(self.bounds, 1.0, 1.0)]; self.centerView.backgroundColor = self.centerColor; [self addSubview:self.centerView]; } -- cgit v1.2.1