I have what i thought was a relatively simple question but i cannot find an answer to it yet. I have an iPhone app that uses GPS on one of its screens. I want to disable this screen using code when the app loads,so disable it when a iPod touch is being used. This is so it can still be useful on a iPod touch as there is a lot of functionality that a iPod touch user can use.
Thanks.
You can get there with @Aaron’s answer, but that’s not the way to do it. Use
[CLLocationManager locationServicesEnabled];to tell if you can determine the users’s location. This is a lot more robust than making decisions based on the device model.