开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜