Tuesday, 1 October 2013

Moving compass on MKMapview when rotating

Moving compass on MKMapview when rotating

The compass that appears in the top right of the map when rotating is
being hidden by other elements on the screen. I tried moving it in a
manner similar to moving the "legal" label, but if I run:
for(UIView *subview in self.mapView.subviews) {
NSLog(@"Subview : %@", subview);
}
It logs:
2013-10-01 21:15:48.961 MP Staging[6890:60b] Subview : <UIView:
0x1757faa0; frame = (0 0; 320 504); autoresizesSubviews = NO;
gestureRecognizers = <NSArray: 0x18815fd0>; layer = <CALayer: 0x1757fb00>>
2013-10-01 21:15:48.963 MP Staging[6890:60b] Subview :
<MKAttributionLabel: 0x18813a10; baseClass = UILabel; frame = (11 484; 24
11); text = 'Legal'; clipsToBounds = YES; alpha = 0.5; autoresize = RM+TM;
userInteractionEnabled = NO; layer = <CALayer: 0x18813bc0>>
How would I go about moving that compass?

No comments:

Post a Comment