Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void)getTimeZoneFromLatLong
- {
- CLLocation *location = [[CLLocation alloc] initWithLatitude:self.parentVC.currentCity.latitude.doubleValue longitude:self.parentVC.currentCity.longitude.doubleValue];
- CLGeocoder *geoCoder = [[CLGeocoder alloc]init];
- [geoCoder reverseGeocodeLocation: location completionHandler:^(NSArray *placemarks, NSError *error)
- {
- CLPlacemark *placemark = [placemarks objectAtIndex:0];
- _placemark = placemark;
- }];
- }
- EDSunriseSet *eds = [EDSunriseSet sunrisesetWithTimezone:_placemark.timeZone
- latitude:latitude.doubleValue longitude:longitude.doubleValue];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement