I am a beginner in terms of xcode and objective-c and I am currently building an app that reads xml Files and compares their values to textfield values.
I have 2 classes. The first one is my View Controller where my textfields are. The second class is where I iterate through my xml files.
I simply want to be able to access the textfield's text my XML iterator class. It is important that I can save the text that has been entered in the textfield as a variable in my iterator class.
I attempted to do something like this, but it didn't work:
ViewController *viewcontroller = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
viewcontroller.string = self.myTextField.text;
Help would be greatly appreciated since I have had trouble with this for a long time now.