Allow MapKitView to deal with orientation changes

This commit is contained in:
ascorbic
2011-01-20 15:33:07 +00:00
parent 930717936b
commit 2bc361d726

View File

@@ -37,6 +37,8 @@
mapView.autoresizesSubviews = YES;
mapView.userInteractionEnabled = YES;
mapView.showsUserLocation = YES;
mapView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
childView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
imageButton = [UIButton buttonWithType:UIButtonTypeCustom];