我怎样才能把东西转或投到一个替身?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];