I am using iOS SDK 8.1 trying to call requestWhenInUseAuthorization() method to prompt user to grant access to my app. I imported CoreLocation.framework, and added NSLocatio
Problem solved. My manager was declared as local var inside viewDidLoad() method, but it should've been a class level property.
After I moved manager declaration out of viewDidLoad(), my app worked.
Not sure how exactly manager.requestWhenInUseAuthorization() work behind the scene and why exactly manager defined within viewDidLoad() not work. Hope someone who knows this detail enlighten me.