2012-04-03 34 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

相关问题