As fetching current location requires much time so i want to add cancel button. But i’m unable to click any button until it gets the current location. Any suggestions???
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you run things on the main thread it, can lock everything up – try getting the location using
UPDATE:
You will need to make an autorelease pool for this new thread too, so as the first line in mySelector, put:
and at the last line, put:
All of your other code goes in between. If you don’t do this, then you’ll get nasty memory problems.