My task is – to figure out, if there is GPS module available on the device. I’m using
[CLLocationManager locationServicesEnabled] for this.
But, question is – is this normal, that on simulator I have “true”? I think it should be “false”.
Can anybody explain me, how this method works? Is this correct method for my task?
My task is – to figure out, if there is GPS module available on
Share
the correct method of checking if ths gps is enabled or not is using this if statement :