Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 09-22-2008, 03:07 PM   #8 (permalink)
cmezak
Registered Member
 
cmezak's Avatar
 
Join Date: Jul 2008
Posts: 207
cmezak is on a distinguished road
Default

So this would work:

Code:
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error {	
	if (error == kCLErrorDenied) [locationManager stopUpdatingLocation];
	else if (eror == kCLErrorLocationUnknown) {
		[locationManager stopUpdatingLocation];
		// open an alert with just an OK button
		UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Whoops!" message:@"Your GPS location could not be determined.  Try again."
													   delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil];
		[alert show];	
		[alert release];
	}
}
?

I hope Apple actually tells me what the problem is soon.

- Charlie
cmezak is offline   Reply With Quote
 

» Advertisements
» Online Users: 386
21 members and 365 guests
Absentia, alexP, blackcat_tq, Bobarino, Duncan C, eski, Farfalo, flamingliquid, Garros1990, hacker073, ilmman, jbro, MysticLine, n00b, Newbie123, nmi300, NSString, PandaUser, pinky, Sami Gh, SuperDietGenius
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,560
Threads: 94,079
Posts: 402,744
Top Poster: BrianSlick (7,990)
Welcome to our newest member, mongmo
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:50 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.