NSXMLParserDelegate compile problem - iPhone SDK 30. vs 4.0

后端 未结 2 1656
醉酒成梦
醉酒成梦 2021-01-05 12:15

My header file is defined like this:

#import 

@interface Warning: NSObject  { 

In my .m file I do:

2条回答
  •  隐瞒了意图╮
    2021-01-05 12:48

    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.

提交回复
热议问题