Hello World Problem

Joined
Apr 22, 2011
Messages
5
Reaction score
0
Points
1
Hi, I hope that its okay to ask this question here

I am working on creating my first application: "Hello World" I following the directions but I made an error along the way. When I compile and run the program, the hello world appears before i press the :press Me" button. Could someone please take a look at my code and tell me where I am going wrong. Much Appreciated. Thanks Everyone

View attachment hello.zip
 
OP
Z
Joined
Apr 22, 2011
Messages
5
Reaction score
0
Points
1
Is this the right location to post this question and in this format? Thanks
 
Joined
Feb 25, 2009
Messages
2,112
Reaction score
71
Points
48
Your Mac's Specs
Late 2013 rMBP, i7, 750m gpu, OSX versions 10.9.3, 10.10
Hi,

Open your xib file for helloWorld_001ViewController in IB, click on the UILabel that you currently have the text Hello World! in, erase the text, save the file, compile the app - you'll find it works now as you expect :)

When you put text in a Label (or as a title of a button or in a UITextView, etc.) it will appear when you run the app which is why it was appearing right when you ran the app instead of after tapping the button.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top