作者isaacisaac (胖i)
看板MacDev
标题[请益] locationManager 抓取位置
时间Fri Oct 16 00:06:35 2015
各位大大安安,
最近试着在研究 Google Map API ,
目前进度是打算 透过 locationManager 去存位置
把他放入 GMSpath 然後画出 Polyline。
但是就在取定位资讯就卡关了....
程式码在此:
https://gist.github.com/anonymous/18e50db82365eadb5840
在第56行
我试着把 currentlocations 就是管理员产生的定位资讯 物件
存进 mylocations Array 里面
[mylocations addObject:currentLocations];
但是怎麽都存不进去,
能确定 currentlocations 是有抓到定位资讯的...
还请大大开示,感谢不尽!!!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 42.72.2.255
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/MacDev/M.1444925201.A.151.html
1F:→ yr: my locations 没先 init alloc ? 10/16 00:11
2F:→ isaacisaac: 真的...(跪主机板去 感谢大大 10/16 00:24