I’m trying to create an NSXMLParser and call its delegate methods. On setting the delegate to self (2nd line below) I get a warning Sending 'XMLParserViewController *' to a parameter of incompatible type 'id <NSXMLParserDelegate>'. What am I missing here?
NSXMLParser *parser = [[NSXMLParser alloc]initWithData:data];
[parser setDelegate:self];
[parser parse];
[parser release];
Change the line:
@interface XMLParserViewController : UIViewController(in your .h file) to:You forgot to set your UIViewController as a delegate of the delegate (if you will).