I’m the beginner in iPhone software development, and I’m creating a HTTP request using the SOAP XML parsing method.
I was creating a variable soapResult for storing the received http data. I want to use the soapResult value into another class.
How can I access that value. I was going to make it a global variable but i don’t know how to create and use it?
Also if that method is wrong then how should I implement it?
Generally, singletons are preferred over global variables.
I found this article useful on a similar matter: Cocoa with Love: Singletons, AppDelegates and top-level data