Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/43.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iPhone4指南针和地图_Iphone_Google Maps_Compass Geolocation_Cllocation - Fatal编程技术网

iPhone4指南针和地图

iPhone4指南针和地图,iphone,google-maps,compass-geolocation,cllocation,Iphone,Google Maps,Compass Geolocation,Cllocation,如何在使用iPhone4的谷歌地图上使用基于方向的指南针,就像地图应用程序所做的那样 有什么教程可以参考吗 谢谢在位置管理器:didUpdateHeading:中,对地图视图应用旋转变换: double headingInRadians = newHeading.trueHeading * M_PI / 180.0; mapView.transform = CGAffineTransformMakeRotation(headingInRadians); 地图视图的边框应略大于可见区域,以便在旋

如何在使用iPhone4的谷歌地图上使用基于方向的指南针,就像地图应用程序所做的那样

有什么教程可以参考吗


谢谢

位置管理器:didUpdateHeading:
中,对地图视图应用旋转变换:

double headingInRadians = newHeading.trueHeading * M_PI / 180.0;
mapView.transform = CGAffineTransformMakeRotation(headingInRadians);

地图视图的边框应略大于可见区域,以便在旋转时不会显示空白角。

位置管理器:didUpdateHeading:
中,对地图视图应用旋转变换:

double headingInRadians = newHeading.trueHeading * M_PI / 180.0;
mapView.transform = CGAffineTransformMakeRotation(headingInRadians);

地图视图的边框应该比可见区域大一点,这样在旋转时就不会出现空白角。

我确实这样做了,但我的地图没有移动:(嘿,如何获取当前位置的蓝色圆点?这一点太闪烁了???我确实这样做了,但我的地图没有移动:(嘿,如何获得当前位置的蓝色圆点?那也是闪烁的吗?)???