Note that there are some explanatory texts on larger screens.

plurals
  1. POset a constant language to CLPlacemark instance class
    primarykey
    data
    text
    <p>i have looked every where and didn't found an answer for this one.</p> <p>i'm building an iOS app that uses the location (lat + long) of the user creating a CLPlacemark, and sends the street + country to the server and get back a respond according to this location.</p> <p>now the server can get only hebrew values, and the CLPlacemark values are changes according to the operation system of the user.</p> <p>can i set a const language to the CLPlacemark class instance? i want that the CLPlacemark will return hebrew regardless from the operation system of the user</p> <p>here is my code:</p> <pre><code>- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation { geoCoder = [[CLGeocoder alloc]init]; [self.geoCoder reverseGeocodeLocation:locationManager.location completionHandler: ^(NSArray *placemarks, NSError *error) { CLPlacemark *placemark = [placemarks objectAtIndex:0]; placemark. self.countryTextBox.text =[placemark.addressDictionary valueForKey:@"Country"]; self.citiTextBox.text =[placemark.addressDictionary valueForKey:@"City"]; self.streetTextBox.text =[placemark.addressDictionary valueForKey:@"Street"]; self.zipCodLbl.text =[placemark.addressDictionary valueForKey:@"ZIP"]; //NSLog(@"%@",placemark.addressDictionary); NSLog(@"%@",[placemark.addressDictionary valueForKey:@"Country"]); NSLog(@"%@",[placemark.addressDictionary valueForKey:@"City"]); NSLog(@"%@",[placemark.addressDictionary valueForKey:@"Street"]); NSLog(@"%@",[placemark.addressDictionary valueForKey:@"ZIP"]); [locationManager stopUpdatingLocation]; [self.animationBar stopAnimating]; }]; } </code></pre> <p>thanks a lot.</p> <p>idan.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload