【发布时间】:2011-05-31 23:35:02
【问题描述】:
我在 MKMapView 层中添加了一个cornerRadius,类似于
[self.routeMapView layer].cornerRadius = 20.0f;
此属性仅对左上角有效。休息根本没有改变。
不知道有没有办法让mapView变圆;
【问题讨论】:
标签: ios iphone uikit mapkit mkmapview
我在 MKMapView 层中添加了一个cornerRadius,类似于
[self.routeMapView layer].cornerRadius = 20.0f;
此属性仅对左上角有效。休息根本没有改变。
不知道有没有办法让mapView变圆;
【问题讨论】:
标签: ios iphone uikit mapkit mkmapview
使用容器视图并为容器视图的层指定cornerRadius。
【讨论】:
masksToBounds设置成YES了吗?