I need help with pulling data from a textfield in Xcode. Not pushing data through.
For example, I have a tabbar controller which has two tabs. Tab1, and Tab2.
- Tab1 contains a textfield.
- Tab2 contains a Label.
Is it possible to type something in textField in the Tab1, and when pressing tab2, have that text automatically appear in the label in Tab2?
Thanks for your help in advance.
You can create a simple class like “Data” that inherits NSObjects. Then add properties that store that data (don’t forget to synthesize them). Add that class to both of your tabs’ view controllers. Then pass around that data in the properties.