I'm currently trying to get to grips with the iOS SDK and Objective-C in general, and I've started working on a basic app.
My 'app' currently has a UITextField, UIButton and UIAlertView which just displays what the user has typed in to UITextField. This is all taking place in ViewController.(h/m). UITextField and UIButton are in viewDidLoad and UIButton calls UIAlertView.
I have some code (written in C) which I want to use to manipulate the input and generate an output for UIAlertView, but I'm not sure how to do that.
I'm guessing I'd need to add the (number crunching) code to main, move UITextField outside of viewDidLoad, call it from main (to capture the entry), then call UIAlertView in ViewController from main with the output?
Thanks in advance.
My 'app' currently has a UITextField, UIButton and UIAlertView which just displays what the user has typed in to UITextField. This is all taking place in ViewController.(h/m). UITextField and UIButton are in viewDidLoad and UIButton calls UIAlertView.
I have some code (written in C) which I want to use to manipulate the input and generate an output for UIAlertView, but I'm not sure how to do that.
I'm guessing I'd need to add the (number crunching) code to main, move UITextField outside of viewDidLoad, call it from main (to capture the entry), then call UIAlertView in ViewController from main with the output?
Thanks in advance.