in my view I only have a single textfield
IBOutlet UITextField *textfield;
I push my view controller onto a naviagation controller, with a couple of custom buttons added in the navigation bar on viewDidLoad in the controller..
My question is: what's the preffered approach to working with the text field value? It seems logical to put (for example) save logic into the controller code. But then I need to somehow get the value from the view... should I implement a public method in the view or can I access the textfield from the controller in some better way? What's the best approach there?
I'm still trying to get around the view/view controller approach used by Apple. Somehow UIView seems a bit redundant if all it contains are the IBOutlets.
IBOutlet UITextField *textfield;
I push my view controller onto a naviagation controller, with a couple of custom buttons added in the navigation bar on viewDidLoad in the controller..
My question is: what's the preffered approach to working with the text field value? It seems logical to put (for example) save logic into the controller code. But then I need to somehow get the value from the view... should I implement a public method in the view or can I access the textfield from the controller in some better way? What's the best approach there?
I'm still trying to get around the view/view controller approach used by Apple. Somehow UIView seems a bit redundant if all it contains are the IBOutlets.