Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

I-Bot

macrumors regular
Original poster
Sep 12, 2008
109
22
My City
So, I am trying to do a basic xCode of HelloWorld which I was able to find a tutorial of online but I just can't seem to figure out these three errors I am having with it, if anyone can give me any assistance or support with these that would be very greatful. I have added a screenshot of the error so if anyone could help me, that would be greatly appreciated.
 

Attachments

  • Screen Shot 2012-04-11 at 3.04.24 PM.png
    Screen Shot 2012-04-11 at 3.04.24 PM.png
    54.8 KB · Views: 128
...I was able to find a tutorial of online...
Which tutorial? Please provide a link.

...but I just can't seem to figure out these three errors I am having with it...

Does the tutorial provide a zipped project file for you to compare your code against? You should at least review your code and ensure it is typed exactly as the tutorial shows. Your first error relates to the fact your @property doesn't specify a datatype.
 
The line should be like this:

@property UIButton *HelloButton;

But this will only fix part of the problem, as demo suggests provide a link to the tutorial
 
Indeed, you need a property that does this @property UIButton-> which is your User Interface Button, * -> pointer, hellWorldButton -> name;
Neat coding wise it's good to allways set your names to start with small letters, never with Capitals, that's for Classes..
Also, what's up with all those breakpoints? you know you can set one breakpoint and just do a step over, step over..
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.