en

hi, it seems you are using microsoft internet explorer. it doesn't match web standard and causes problems browsing this site. please please please use mozilla firefox or google chrome instead. thank you!

zh

哦哦!您正在使用Internet Explorer 瀏覽器,它與我們的網頁標準並不相容,可能會導致畫面顯示不正常。
請改用 Mozilla Firefox 或者 Google Chrome 才能正常瀏覽本網站,謝謝!

12.16.2011

取得指南針 / 羅盤 / Magnetometer 數值的方法

 

目前大部份的 iOS 裝置都有支援 Magnetometer 指南針的功能,透過 Core Location 的Framework 就可以輕易取得 Magnetometer 當前的數值(角度),請看以下程式碼示範。

1.12.2011

使用 Core Location 做簡易的定位


iOS 的 CoreLocation 支援三種定位方式,內建的 GPS 定位、電信基地抬的三角定位與  Wi-fi 無線網路基地台定位,下列程式碼將示範如何使用 CoreLocation 來做簡單的定位。(View-based Template)