Releasing instance if service not enabled?
- by fuzzygoat
I would just like to check if I have this right, I am creating an instance of CCLocationManager and then checking if location services are enabled. If it is not enabled I then report an error, release the instance and carry on, does that look/sound right?
locationManager = [[CLLocationManager alloc] init];
BOOL supportsService = [locationManager…