【发布时间】:2011-03-08 13:22:21
【问题描述】:
我怎样才能将某物转身或施放一个替身? CLLocationDegrees 真的是双精度,所以我如何将它转换为双精度,这样我的 if 总是返回双精度,我可以将我的 findAllLocalCountTotal 参数更改为双精度而不是 CLLocationDegrees?
if(self.lastKnownLocation == nil ){
double lat = [CLController sharedInstance].latitude;
double lng = [CLController sharedInstance].longitude;
}else{
CLLocationDegrees lat = self.lastKnownLocation.coordinate.latitude;
CLLocationDegrees lng = self.lastKnownLocation.coordinate.longitude;
}
NSNumber *tempInt = self.lastPostsGrabbedCounter;
//Make call to get data with lat lng
self.webServiceAllCount = [Post findAllLocalCountTotal:(CLLocationDegrees)lat withLong:(CLLocationDegrees)lng];
【问题讨论】:
标签: objective-c double cllocation