问题
The situation is this: We have an app that records sound. If the app is running on a second generation iPod Touch and airplane mode is OFF then there are periodic noises that end up in the recording due to the WIFI activity of the iPod.
So I want to detect that we're running on a second generation iPod Touch (which I know how to do), and, if so, tell the user to turn on airplane mode, if it's not already on. Note that it's NOT SUFFICIENT to simply know that WIFI is unreachable as the iPod will continue to try to "talk" to WIFI every 12 seconds, even if there is no WIFI connection available.
So, does anyone know of a way to determine if airplane mode is on or off?
回答1:
There appears to be no way to do this.
来源:https://stackoverflow.com/questions/9981427/airplane-mode-on-ipod-touch-revisited