作者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://www.ptt.cc/bbs/MacDev/M.1444925201.A.151.html
→ yr: my locations 沒先 init alloc ? 10/16 00:11
→ isaacisaac: 真的...(跪主機板去 感謝大大 10/16 00:24