UITextFieldProblem
I have one issue with UITextField
In my first view there are two things a UITextField and a UIButton. Now when I 开发者_开发问答click on button then the value of the textfield must be displayed on the label which is in secondview controller.
Please help.
There are many options for this One of them is take a string in the appDelegate file NSString * myString;
set its property and synthesis it..
Then on click event of the button in first view set the value of string to the value of textField i.e. appDelegate.myString=textField.text;
In the second view assign the value of string to the label: label.text=appDelegate.myString......
Hope this helps...
Happy Coding
精彩评论