Tag Archives: beer

iPhone tutorial app 4

Oh.. now I can press a button and make text appear over an image! WOO..

It took about 1 hour to get this working. Actually, let me re-phrase that, it took me an an hour to build and ‘test’ a version of this that refused to run. No errors appeared, it just ran and then exited without so much as whimper. Pounded around in the code trying to find the cause.

In the end, I deleted the entire thing and started over from scratch. Following (what I thought) were the same steps, I re-built the app in about 5 minutes, hit SAVE -> RUN and viola!



What it does:

  • Upon start up, a photo (from about 15 years ago) for a beer can, yet to be opened appears.
  • At the top of the can is a button labeled ‘Press Here’.
  • Pressing the button makes the text “Beer is Good!” appear below the can.
  • Then, it sits there, tasks completed, waiting to be terminated.

    Pretty cool huh? At least I know the steps for including images as a background. And this is great, since I know how to place an image (required for my soon-to-be-coded real app), how to make text appear (but I don’t be using a button) and.. really.. that’s about it.

    I’m 77 pages into the 300 page book, 4 apps constructed and soon.. things might actually get interesting.