Ish*_*gra 0 iphone objective-c mapkit ios
我正在开发一个应用程序,我必须使用地图MKMapView,但圆形?
任何想法,任何线索也会有所帮助.
在屏幕截图中看到,你会明白我在问什么.
请参阅圆圈中的地图.

这是一个棘手的方式,但它可能是你想要的!
加 QuartzCore.framework
#import <QuartzCore/QuartzCore.h>
//make circled shape
[yourMapView.layer setMasksToBounds:YES];
[yourMapView.layer setCornerRadius:160.0]; //here you've to pass width of yourMapView / 2
Run Code Online (Sandbox Code Playgroud)
很高兴看到更多的答案!:)
| 归档时间: |
|
| 查看次数: |
1332 次 |
| 最近记录: |