My header file is defined like this:
#import @interface Warning: NSObject {
In my .m file I do:
I was able to fix this with:
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_4_0 @protocol NSXMLParserDelegate @end #endif @interface Warning: NSObject
Just be sure to implement the appropriate methods in your implementation.