My app is a tab bar. i have 4 views and i have CLLocationManager instance in every view. In every view i have logout button. I want to release all CLLocationManager instances when i click on logout. Is it possible? Thanks in advance.
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.
Sounds like you just need to fire off a notification when the user hits logout and listen for it in each of the classes that have a
CLLocationManagerthen do the logic for tearing it down.