Subscribe ( )

iPhone Programming Tutorials

 

Forum

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

You must be logged in to post Login Register

Search 

Changing label text in a view to input text from another

User Post

3:27 pm
June 5, 2009


vertmonkee

Noob

posts 1

1

I have followed a tutorial where a tab bar is implemented and in the first view you can type in some text click a button and the text is added to a label in the second view. All of this is done through xcode.

All works fine so to practice my skills I am trying to create the UI elements in interface builder.

I am having problems with the final step where the button is clicked and the text is assigned from th text field to the label.

The code that updates the label text is as follows

- (void)action:(id)sender {
    [self.textField resignFirstResponder]; //Hide Keyboard
    self.delegateRef.view2Controller.label.text = self.textField.text;//Ubdate label
}

The whole project can be downloaded at

I'd really appreciate anyone helping me out with this last little bit.

Thanks for any help.


About the iCodeBlog forum

Currently Online:

4 Guests

Maximum Online: 44

Forums:

Groups: 2

Forums: 6

Topics: 333

Posts: 779

Members:

There are 746 members

There are 1 guests


Brandon has made 87 posts

Top Posters:

bobcubsfan - 54

crazyiez - 30

VertigoSol - 26

AdeC - 17

Uhu - 17

Administrator: Brandon | Moderators: VertigoSol


© - Version 3.1.4 (Build 357)