not able find location on iPhone device -


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 my work is 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

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -