Permalink
Browse files

Allow MapKitView to deal with orientation changes

  • Loading branch information...
ascorbic committed Jan 20, 2011
1 parent 9307179 commit 2bc361d726b426c0f38dca69d5597481ed3b6530
Showing with 2 additions and 0 deletions.
  1. +2 −0 iPhone/MapKitPlug/src/MapKit.m
@@ -37,6 +37,8 @@ - (void)createView
mapView.autoresizesSubviews = YES;
mapView.userInteractionEnabled = YES;
mapView.showsUserLocation = YES;
+ mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
+ childView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
imageButton = [UIButton buttonWithType:UIButtonTypeCustom];

0 comments on commit 2bc361d

Please sign in to comment.