I'm following the selected answer importing private frameworks in Xcode
Basically I want to be able to control Airplane mode in my app. When I import RadioPreferences.h into my app and try to compile, I'm getting Expected Identifier for @class <RadiosPreferencesDelegate>;
I'm not exactly sure what to do next. I didn't even know you can forward declare protocols.
First copy the following contents into a file named
RadioPreferences.h. (Taken from https://stackoverflow.com/a/13095362/418715 )./Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/System/Library/PrivateFrameworks. ReplaceiPhoneOS6.0.sdkin the path with the sdk you are targeting.Everything should now compile and you will be able to use the class.