Created
July 30, 2010 15:40
-
-
Save ducban/500737 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// These options are just collected and didn't test yet. | |
// Option 01: | |
#import <QuartzCore/QuartzCore.h> | |
myMapView.layer.cornerRadius = 10.0; | |
// Option 02: | |
float scaleBy = 0.80; | |
MKMapView *mapView = [[[MKMapView alloc] initWithFrame:CGRectMake(-5, 0, 100/ scaleBy, 50/scaleBy)] autorelease]; | |
mapView.delegate=self; | |
mapView.layer.cornerRadius = 10.0; // Make the corners rounded | |
mapView.opaque = NO; // If you are using in a UITableView never set to YES! | |
mapView.scrollEnabled = NO; // Don't allow user interaction | |
mapView.zoomEnabled = NO; | |
mapView.layer.borderColor = [UIColor colorWithWhite:0.0f alpha:0.5f].CGColor; | |
mapView.layer.borderWidth = 1.0f/ scaleBy; | |
mapView.layer.transform = CATransform3DMakeScale(scaleBy, scaleBy, 1.0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment