Changing Label On Click | Iphone apps xcode, source code

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
7,361
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 29, 2009

This is a single view with a button Mike can press to get a decision. To make things simple, we'll change the label of the button to show what he should do after he pushes it.

Tutorial follows the source below. This is to help college students or others having difficulty with the book. For help feel free to post on tubelo.com
To Download source files visit http://www.tubelo.com/

Source:
Dan, Pilone, Dan Pilone, Tracey Pilone, and Pilone Tracey. Head First Iphone Development: A Learner's Guide to Creating Objective-C Applications for the Iphone. Sebastopol: O'Reilly Media, 2009. Print.

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (rfausak)

  • Is there a way you can add one more label to appear with a different text after clicking the button again and then maybe looping it?

  • Yes, Definitely. I can post a tutorial if you would like. What differences in label are you looking for? Also, how did you like the overall video quality?

  • yea, just basically copy and paste the code from the tutorial, and add a count to keep posting it until a certain number is reached.

see all

All Comments (6)

Sign In or Sign Up now to post a comment!
  • can you post a tutorial of when you press the button once it displays a text and if you press the button again it displays reverse of the text and then the cycle continues.. it will be really helpful thanks

  • Awesome tutorial, came in handy and fixed my issue! thanks for posting this!!!!

  • I like your example using a button and label where you click it to change the text question to get an result text and stays changed after the click. Was looking for this. I was wondering if and how you could press the same button a second time (or more) to change the label again with a different text (or images) like an array and maybe loop to the first text/label? Am I making sense? I thought the example and the explanations where useful. A little blurry when typing code. But good video.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more