In my app Iphone, I want to do a simple thing like : I have a GroupDetailViewController with a text Field and a button. When user press the button I want to send the text from textfield to another class ItemViewController and set this text to a label. I have no idea how can I do this. I am new on Iphone,I have done just some tutorials. I have looked here : How to send text field value to another class but I dont understand the answer. Can anyone explain me or give me an example?
Share
Let us assume that your second class is SecondViewController.
Now in SecondViewController declare one
NSStringand set its properties.SecondViewController.h
SecondViewController.m
Now in GroupDetailViewController, on button touch event, put the value from textfield in
strTextValue.Put
strTextValuein label created in SecondViewControllerSecondViewController.m