- Where Developers Learn, Share, & Build Careers


I've added the code to find the location, it's working on the simulator but it's not working on an iPhone device . I have enabled location services but still it is not working.

  - (zero) First Time Refresh {CLLocation * Best Location = [[[AppDelegate getAppDelegate] Locator] Best Location]; If (best location! = Null) {NSLog (@ "use best waste"); [Cathartis: [NSARRAOD Objects: [NSNumber Number: Float: Best Location.Cordinate. LETITUDE], [NSNumber Number with Flowst: Best Location. Cordinet. Langality], zero]: @ "fottal": pg_no]; }}    

Try this code and I'm finished.

  locationManager = [[CLLocationManager alloc] init]; [Location Manager Set Deliaget: Self]; [Location Manager SetCidid Actuci: KCL LaunchEXAcAst]; [LocationManager startUpdatingLocation];    

If the location is updated, define the CLLocationManagerDelegate rep in this class file.

  - (zero) Location Manager: (CLLocationManager *) Manager update location: (CLLocation *) from the new location location: (CLLocation *) old location {}     

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -