Reputation: 1783
I am trying to retrieve the current user location with Parse. But for some reason beyond my knowledge I am not being able to get anything to happen inside the block bellow. Neither point nor error.
I am running xcode 7 with ios9.
func geoLocation(){
print("GEO LOCATION")
PFGeoPoint.geoPointForCurrentLocationInBackground { (point: PFGeoPoint?, error: NSError?) -> Void in
print("POINT\(point)\(error)")
}
}
Upvotes: 1
Views: 97
Reputation: 23
NSLocationWhenInUseUsageDescription
and
NSLocationAlwaysUsageDescription
Put this keys in the info.plist
This is now a requirement for IOS 8 and above.
Upvotes: 1