title: NSXMLParser not adding objects
body: <p>I'm new to the NSXMLParser, so I decided to take this tutorial: <a href="http://www.xcode-tutorials.com/parsing-xml-files/" rel="nofollow">http://www.xcode-tutorials.com/parsing-xml-files/</a> and it was great. But in my app I used parser not in AppDelegate, but in other ViewController. I changed initialization to this:</p>
  
  <pre><code>-(XMLParser *)initXMLParser {
      [super  init];
  
      viewController = (ViewController *)[[UIApplication sharedApplication] delegate];
  
      return self;
  }
  </code></pre>
  
  <p>The parser itself works well but it doesn't add any objects to the array in view controller in which the objects should be added. Can anyone help?</p>