Mapkit iOS get Location

Hi guys,

I am trying to run the mapkit example and change the start location to the device gps. I have tried

mapKit.setRegionWithMeters(mapKit.getCenterLocation().latitude, mapKit.getCenterLocation().longitude, 100, 100);

But get the following in my console.

2015-04-28 17:49:21.518 MapKitExample[1139:1001312] Trying to start MapKit location updates without prompting for location authorization. Must call -[CLLocationManager requestWhenInUseAuthorization] or -[CLLocationManager requestAlwaysAuthorization] first.

Does anyone know how to call this?