tags:

views:

25

answers:

1

I have one issue with UITextField

In my first view i have TextField and button.If i have TextField some insert value. i click that button it should open textfield value display Label in the second view.

Please help in this issue.

A: 

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

Suriya