p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Courier; min-height: 14.0px}
span.s1 {color: #742ea8}
span.s2 {color: #4300d7}
span.Apple-tab-span {white-space:pre}
- MKMapPoint point1 = MKMapPointForCoordinate(coordinate1);
- MKMapPoint point2 = MKMapPointForCoordinate(coordinate2);
- MKMapRect rect1 = MKMapRectMake(point1.x, point1.y, 0, 0);
- MKMapRect rect2 = MKMapRectMake(point2.x, point2.y, 0, 0);
-
- MKMapRect r = MKMapRectUnion(rect1, rect2);
- [self._mapView setVisibleMapRect:r animated:YES];
这里主要是MKMapRectUnion的使用. CGRectUnion(rect1, rect2).
阅读(2201) | 评论(0) | 转发(0) |