Firstable, we need to get a Google API key
then, build a response model for it,
call direction API, get the result in App and do the transfer from JSON to our result model.
finally, use polylines from the result to draw it on mapview, done!
Firstable, we need to get a Google API key
then, build a response model for it,
call direction API, get the result in App and do the transfer from JSON to our result model.
finally, use polylines from the result to draw it on mapview, done!
問題發生於從WebAPI取得結果,以Dictionary操作,再轉換成對應的Object時,取一個屬性可能是Int或String時發生以下錯誤:
Fatal Exception: NSInvalidArgumentException -[NSTaggedPointerString stringValue]: unrecognized selector sent to instance 0xa000039312f31305
「就是有很多人搞不清楚東西南北…」,老闆一臉平淡的說著
「好吧,按下按鈕之後,讓使用者看著手機知道手機畫面的上方就是他面朝方向…收到」碼農準備出動!