0

Possible Duplicate:
Disappearing UILocation alerts in XCode 4.2 with ARC iPhone

I'm trying to get the user's location using a class called MyCLController (found somewhere on the Internet). I have already used it in different application without any problem.

But in a new project when I call:

MyCLController *loc = [[MyCLController alloc] init];
loc.delegate = self;
[loc.locationManager startUpdatingLocation];

The usual prompt "App would like to use your current location" appears and disappear straight away without giving me time to say yes or no. After seeing it twice, the prompt doesn't even appear any more (like when you press "don't allow" twice)

I'm not too sure what other info could relevant at this stage but I'm happy to provide anything that would help (settings, code, etc...)

Community
  • 1
  • 1
Johann
  • 12,158
  • 11
  • 62
  • 89
  • 3
    If you are using ARC, you should look at this question: http://stackoverflow.com/questions/8384567/disappearing-uilocation-alerts-in-xcode-4-2-with-arc-iphone/8389529 – Firoze Lafeer Dec 06 '11 at 12:16
  • Spot on! Thanks. How can I accept your answer though? – Johann Dec 06 '11 at 12:23
  • I think this might be considered a duplicate question per the standards here. So no need to copy the answer. Glad it worked out. – Firoze Lafeer Dec 06 '11 at 12:34

0 Answers0