cllocationmanager

How to turn off location services?

If a user has location services on, I assign my RootController as its delegate: appDelegate.clLocationManager.delegate = self; where appDelegate is an instance of my application delegate, which is where I have the location services instance. clLocationManager is an instance of CLLocationManager. If I discover the user is outside of a...

How to update the Location in CLLocationManager based on Time Interval

I have to update the newLocation in CLLocationManager Delegate depending on certain time interval ...

how can I show compass/heading on mapkit mapview

on the iPhone 3GS in the "Maps" app you can click the icon which usually shows your position twice and the blue dot gains what looks like a beam from a headlamp, basically showing you the direction you are facing on the map and rotating the image accordingly. Is this option available using MapKit MapView ? I'm know that I can get my h...

Why does CLLocationManager returns null locations on the iphone SDK 4 beta in the Simulator?

Hi everyone, I have this piece of code: - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation { NSLog(@"Manager did update location!!"); self.currentLocation = newLocation.description; } I have this code inside a class that conforms to the CLLo...

Why the CLLocationManager delegate is not getting called in iPhone SDK 4.0 ???

This is the code that I have in my AppDelegate Class - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { CLLocationManager *locationManager = [[CLLocationManager alloc] init]; locationManager.delegate = self; locationManager.distanceFilter = 1000; // 1 Km ...

CLLocation manager issues with iPhone OS 4.0

The location manager delegate methods are taking too long time to determine the latitude and longitude in 4.0 , where as it is much faster in iPhone OS 3.0, 3.1, 3.1.3 etc. Any way to make the call faster ??? ...

CLLoacationManager class returning cached data

Hi frnz , How to remove cached data which is sent by CLLocationManager and how to increase its accuracy.Every time i launch the app it gives me cached data and updates it after some time.I have seen several threads but i am not able to get a concrete sol .can anybody provide me the code? I am using the following method to get position d...

Corelocation Problem

I am developing an application which computes the distance travelled by the user.I am using CLLocationManager class to do so.But i am getting the cached data initially and also the distance variable is increasing at a sudden rate.please help me out ...i have used the follwoing code.... Note:distance is a static var. here - (void)vie...

CLLocationManager on iPhone Simulator fails with kCLErrorDomain Code=0.

CLLocationManager on iPhone Simulator is supposed to fake Cupertino (isn't it?) but it does NOT, it fails with kCLErrorDomain Code=0 instead. LocationManager's delegate receives the message didFailWithError. This method is implemented to log the error and the console outputs the following: Error Domain=kCLErrorDomain Code=0 "The operati...

does wi-fi effect GPS accuracy

Hello i want to know if wi-fi effects GPS accuracy if i used Gps using CLLocation manger in my application ...

GPS gets wrong Position

basicly the Location-Controller in my App works. But if it runs over a long time, it gets wrong Positions without recognizing it. I think the gps-buffer overflows or kind of that. here's my code for the didUpdate-Event - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLo...

cllocation getDistanceFrom/distanceFromLocation

Hi all, i've define a cllocation var and if nil, i'll give my newlocation value in delegate -(void) locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation { if (myStart == nil) { self.myStart = newLocation; when i call if ([myStart re...

CLLocation Manager Delegate is not getting called in iPhone OS 4.0.

I have to run my app in iPhone OS 4.0. (in simulator). -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [self newLocationUpdate]; } -(void)newLocationUpdate { locationManager = [[CLLocationManager alloc] init]; locationManager.delegate = self; [locationManag...

CLLocationManager delegate method is not called in iOS4

Hi Buddies, I am currently working in Map and i find the current location in my application and displayed. Now i am working with iOS4. So the CLLocationManger delegate method is not calling in iOS4. But i could run my application in older version of Xcode 3.1.4. it works fine and delegate method also called properly. So how can i call t...

locationManager:didUpdateToLocation:fromLocation: is recieved with a lag in iOS4 compared to IphoneOS3?

It seems that in iOS4 the GPS updates are recieved with a 3-5 sec lag compared to the behavior in iPhoneOS3. e.g I start changing my location and I only receive GPS updates after a few seconds. I stop moving and the location updates only stop coming after a few seconds. (GPS reception at its best. That's not the problem.) In iPhoneOS...

CLLocation Heading Delay iOS4

After [locationManager startUpdatingHeading]; locationManager.headingFilter = kCLHeadingFilterNone; (void) locationManager:(CLLocationManager*)manager didUpdateHeading:(CLHeading*)newHeading { heading = newHeading.trueHeading; heading += -90.0 * roll; NSLog(@"heading"); } I get the heading once and then there is normally a 20 second...

Why is my maximumRegionMonitoringDistance 0 meters with an iPhone 4?

[CLLocationManager regionMonitoringAvailable] and [CLLocationManager regionMonitoringEnabled] both return YES. performing [locationManager maximumRegionMonitoringDistance] returns 0. Why? (I have iOS 4.0.1, and this is using Ad-Hoc distribution) ...

Using CLLOcationManager and MKReverseGeocoder to get the name of the city.

I am trying to get the name of the city of user's current location by using MKReverseGeoCoder but it has some errors which i cannot recognize. Here are the details: It has some errors which i cannot recognize Undefined symbols: ".objc_class_name_CLLocationManager", referenced from: literal-pointer@__OBJC@__cls_refs@CLLocationMa...

Forcing location allowance on iPhone

If using CLLocationManager in your app, the first time a location update is made it will pop a question to the user asking for permission to use the location service. Now my app uses location, but not in the beginning of the app life cycle and when the user is not active with the phone. So I figure I have to get the allowance right from...

Error EXC_BAD_ACCESS

Hi, I'm new in iPhone developement and I have a EXC_BAD_ACCESS error. In my .h I declare: NSString *myString; In my .m I have to methods: . The (void)locationManager of CLLocationManager interface when I do it: myString = [NSString stringWithFormat:@"%lf",loc.longitude]; NSLog(@"%@",myString); // it works . A (void)sendPosition ...