如何让GMSMarker X和y协调iOS?

时间:2014-04-21 12:19:15

标签: ios objective-c mkmapview

CGPoint point = [mapView.projection pointForCoordinate:marker.position];

点错值

打印点描述:(CGPoint) point = (x=3111.020020, y=-1354.228271)请帮帮我

1 个答案:

答案 0 :(得分:2)

首先将GMSMarker设置为所有标记集,以便在1或2之后的延迟中调用方法

  [NSTimer scheduledTimerWithTimeInterval:1.0f
                                     target:self
                                   selector:@selector(Setviewmarker:)
                                   userInfo:nil
                                    repeats:NO];


  CGPoint point = [mapView.projection pointForCoordinate:marker.position];

point.xpoint.y是位置写入.......