Question: I have an array with various values in python. Those values belong to a column in an excel file. How can I delete all the rows from excel file containing those values? Can I delete those rows directly by using some function in excel?

Answer: 
Assume that you are using CLLocationManager. So did you make a **strong** reference to your *locationManager* object?

It seems to be a case when you requested location in local scope (variable) inside a function. Then trying to use MapKit, but locationManager object is already deallocated.

To solve that case, you should declare...

```
var locationManager = CLLocationManager()

```

... as an instance variable, then request authorization, and then using location services.
For iOS 8 you need to define the "Privacy - Location Usage Description" in the Info.plist.

Eg. **NSLocationWhenInUseUsageDescription** = "Use your location to show near by stores".

or

**NSLocationAlwaysUsageDescription** = "Use your location to show near by stores".

This key specifies the reason for accessing the user’s location information.