Hello,
Do any one have idea for finding true direction using iPhone? I want to implement such application in which I need to find direction in which iPhone is pointing and want to make application same as compass application in iphone 3GS.
Does iPhone 3G supports compass functionality? And can any one tell me how compass application f...
Hi!
I have a TabBarApplication with four tab bar items.
My third tab uses a CLLocationManager to locate where the user are and so forth.
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error {
[locationManager stopUpdatingLocation];
NSLog(@"error%@",error);
switch([error code])
{
case kCLErrorNetw...
I'm not getting any location callbacks on either sim or device. I've got this code being called:
- (void)startLocationCallbacks: (NSObject*) ignore
{
locationManager.delegate = self;
locationManager.desiredAccuracy = kCLLocationAccuracyBestForNavigation;
locationManager.distanceFilter = MINIMUM_METERS;
[locationManager startUpd...
Hi everyone .. iam trying to turn a view in x or y Axis via CLLocationManager ! is it possible ?
my application run on iPad so there is no gyroscope , if use this code :
- (void)locationManager:(CLLocationManager *)manager didUpdateHeading:(CLHeading *)newHeading {
CGFloat heading = -1.0f * M_PI * newHeading.magneticHeading / 180.0f;
m...
I've submitted my first iPhone App to the AppStore (on 10.09.10) and I have just found out that it was "Ready For Sale" (18.09.10). After a short moment of deep Happiness, I've found out some problems in my App, that I DO NOT have when I install it on my iPhone using XCode:
1) My APP uses the CLLocationManager to get the GPS coordinate...
I have a subtle bug that I'm trying to resolve regarding getting updated locations on the iPhone.
Under "normal" conditions, the heading updates come in perfectly fine from the location manager. However, on reboot of the phone or killing all processes on the phone, the heading does not update properly. I always get a -1 for heading. ...
I Want to emit this alert:
Turn On Location Services to allow maps to determine your location
I need both "Settings" and "Cancel" exactly like the "maps" application.
"Settings" should open settings->general->location services
I didn't find the way to open the settings page.
Can you help me?
Thanks
...
IOS4 has recently introduced the possibility to enable/disable location services for a specific application.
I need to detect if this settings is enabled/disabled for MY application.
First I have tried with:
if ([CLLocationManager locationServicesEnabled])
{
....
}
however this refers to the global location service a...
Hi All,
Facing serious problem.
Implementing CLLocationMangerDelegate and using
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
but method
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error{
NSLog(@"%@"...
Hi everyone. I have CLLocationManager in app. So what i need is method to know did a user allow or decline current location. According users answer TableController adding value in table in specific way. I tried to [sightsTableView reloadData]; in
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLo...
Hey there,
There's a bug in OS 4.1 that has broken location services for some iPhone apps ( https://devforums.apple.com/message/306250 ). Basically location services fails to turn on, and doesn't even ask the user for permission to get their location. The worst thing about the bug is that it doesn't occur when you're installing the app ...
locationServicesEnabled changed from a property to a method.
This is deprecated:
CLLocationManager *manager = [[CLLocationManager alloc] init];
if (manager.locationServicesEnabled == NO) {
// ...
}
Now I should use:
if (![CLLocationManager locationServicesEnabled]) {
// ...
}
I want to support iOS 3 and iOS 4 devices. How...
I've discovered by tests that setting a low desired accuracy for CLLocationManager leads to a buggy behavior of this component.
Here are the 2 tests I've made :
Set the desired accuracy to kCLLocationAccuracyHundredMeters. Then the device can't find my position as accurately as I want. Here are the logs from my CLLocationManager's del...
hello guys,
i am using the locationManager. I get the error "system.invaildCastexception" cause i fill my NSString lat and lng with (null). I want to fill them with nothing. how can i fill my NSString with nothing. lat=[[NSString alloc] initWithString:@""]; does not work.
Best Regards
...
The determination of a position takes some time. When and where should the location manager be started?
Now I'm starting the location update one view before the result view (which needs the location) is loaded. If the user taps to fast I get 0.0 coordinates.
To get the right timing the startUpdatingLocation should be called three views...
I have used startMonitoringSignificantLocationChanges method to locate current location. Its working fine if the device is stationary but it is not responding while travelling and cell towers changed.
It gets initial callback. I am using this method
-(void)UpdateOwnLocation{
[locationManager stopMonitoringSignificantLocationChanges];
...
I am wanting to calculate total elevation loss and gain at the end of recording Core Location data. I am having a hard time thinking of the math for this one.
Say if I started at 600 feet and I go up and down during the tracking, how would I calculate my elevation gain and loss?
Ideas?
...
Indoors on an iPhone 4.
WiFi disabled
Running the LocateMe SDK sample or my own code for 30-60 seconds produces horizontal accuracy of 2294 meters. Pretty inaccurate but reasonable for cell tower triangulation. Looking at other apps that do reverse geocoding or location stuff like Foursquare shows a similar lack of accuracy.
However, i...
I see a lot of apps that use GPS in the iPhone have the following warning in the App Description:
Warning: Continued use of GPS running in the background can dramatically decrease battery life.
If an App uses the background processes (like startMonitoringSignificantLocationChanges or Region Monitoring) Apple suggested that the battery ...
Hi,
I am trying to implement a (non-concurrent) NSOperation for location updates using the iPhone SDK. The "meat" of the NSOperation subclass goes something like this:
- (void)start {
// background thread set up by the NSOperationQueue
assert(![NSThread isMainThread]);
if ([self isCancelled]) {
return;
}
s...