2012-04-03 84 views

回答

2

不要把

if([CLLocationMannager isLocationServicesEnabled]) 

檢查ü開始之前CLLocationManager。 此布爾值在應用程序開始查找用戶位置前隱式調用警報。

此外,macros-

#if TARGET_IPHONE_SIMULATOR 

    code..without the if([CLLocationMannager isLocationServicesEnabled]) condition 
//Simulator 

#else 
if([CLLocationMannager isLocationServicesEnabled]){code..} 
// Device 
#endif 

可以放在這裏使用..

1

在控制檯中會出現一個選項不要模仿地點,觀看屏幕截圖,你會得到一個想法 enter image description here

相關問題