When I declare appDelegate
interface as follows in order to set NSXMLParserDelegate
, I receive some warnings from other views that are using [[UIApplication sharedApplication] delegate];
@interface AppDelegate : UIResponder <UIApplicationDelegate, NSXMLParserDelegate>
warning: Initializing 'AppDelegate *__strong' with an expression of incompatible type 'id'
However, if I remove it, another warning appears due to self setting of xmlParser,
@interface AppDelegate : UIResponder <UIApplicationDelegate>
warning: Sending 'AppDelegate *const __strong' to parameter of incompatible type 'id'
on
xmlParser = [[NSXMLParser alloc] initWithData:receivedData];
[xmlParser setDelegate:self];
How to remove both? thank you