Programming Objective-C in XCode 4 – iPhone iOS 4.3 Hello, World! tutorial
You are currently browsing comments. If you would like to return to the full story, you can read the full entry here: “Programming Objective-C in XCode 4 – iPhone iOS 4.3 Hello, World! tutorial”.

August 18th, 2011 at 23:36
Great !
thanks dude !
Do you have something else ?
August 19th, 2011 at 17:36
The app compiles and runs but the button does not change the text of the label. I’ve read the part where the label object is dragged onto the view four times. How is the label connected to the textLabel property?
Am I missing something obvious?
August 19th, 2011 at 17:45
Found out what I missed at the end of the tutorial:
Now, right click again on your File’s owner. On the second you will find our “textLabel”. Drag the circle on the right of “textLabel” to our label and release there.
August 24th, 2011 at 2:59
Hey Paul hope you dont mind me posting your link on my blog. This helped me to get started. great site and a great tutorial
Thanks
August 29th, 2011 at 15:52
This Tutorial Very Useful for beginners in iphone apps
August 30th, 2011 at 1:11
Thanks for the tutorial. Do you create apps for hire?
August 30th, 2011 at 20:49
hey thanks alot ..
August 31st, 2011 at 14:31
@blueskyvan Yes, I do.
August 31st, 2011 at 18:47
Thanks! Short and sweet. Nice intro app.
Being new to iOS development, the number of options seems overwhelming.
Didn’t have the changing of background color, though, as was suggested in “What you will learn”.
September 1st, 2011 at 1:54
Yo. I just did your tutorial. Very helpful! However, when I run my app, the button does not do anything. I have the label attached to the textLabel and the “Label” text, but the button does not change the text to “Hello World!”
Am I missing something? My code matches yours exactly and I do not get any errors.
September 3rd, 2011 at 21:36
Hi Paul
)
Can’t see the images – is it just me
John
September 3rd, 2011 at 21:41
@Bret You need to connect your action to the button as well.
@John I think its just you mate, it works fine here.
@Everyone Else: Thanks for the kind word. I’ll try to write some new tutorials soon.
September 6th, 2011 at 7:46
Thanks, being new to both mac world and objective C and having to start an iphone app comercial project soon, I found your tutorial greatly encouraging. Nice and simple
September 8th, 2011 at 5:51
When I get to the step where I press (Command key) + (Shift key) + = after clicking on the button, it doesn’t do anything, and then when I click on the File’s owner, that doesn’t do anything either…?
I’m using the newest Xcode 4.1
September 11th, 2011 at 16:07
I’ve copied all the codes for the project. Drag the file owner to the button. The first .h file need to add <UIkit….. something like that to build without error. And after that, Label is still Label. I've linked all things. Is this work for the xcode 4.1? Thanks.
September 12th, 2011 at 8:18
Thanks Boss…
it is really nice for the starter like me…
its give me a basic idea…
Thanks Again…
September 12th, 2011 at 9:17
@Rex Yes, is works for XCode 4.1. I think what you should do is download the example I uploaded. Compare your result with that result and I think you figure it out.
September 13th, 2011 at 3:17
This is an amazing walkthrough…thank you so much for taking your time to write this up. It’s given us a good overview to programming in xcode.
September 13th, 2011 at 6:00
Thanks Paul with your prompt reply!
Actually I’ve copied all your codes and give it a try. Will there be a packed project file for download? Thanks.
September 13th, 2011 at 7:03
@Rex My bad, thought I uploaded one. I’ll do so today and notify you.
September 14th, 2011 at 15:15
Congrats on your blog.
Its sad to see wanna-be programming teachers leaching this material.
Making enemies is a sign that your doing a good job and that you are a step ahead of everyone.
Make sure you always leave an egg in your text..
-cheers
September 14th, 2011 at 15:58
congrats…THIS IS THE ONLY TUTORIAL THAT ACTUALLY WORKS..
finally… i see a light in the end of the tunnel…
lots of bugged tutorials out there
September 15th, 2011 at 19:24
Can this app now be moved to an IPhone? Can you show a novice how to do it?
September 15th, 2011 at 19:56
Hi Dean!
I think someone has asked that already, but to answer it now anyways:
To install an unofficial application, you can do it two ways:
1) The official way, the way I suggest you do it as well. You need to get yourself a Apple Developers license ($99/year). After that you should create the appropriate certificates and profiles which you use with xCode. That way you can install applications directly from xCode to your iOS device.
2) The un-official way. This is the way I do not recommend. You need to jailbreak your iOS device (voiding the warranty as well I believe!) and install AppSync (google it). When thats done you can install apps by building them with xCode and then drag them using iTunes to your phone. This might work, however you can not debug your application this way.
I hope my answer helped you.
September 16th, 2011 at 6:01
Thanks so much for this tutorial! I just started programming in Xcode today to learn how to develop iPhone apps. You really helped me to connect the dots about the basics. Now I’m on to find more good tutorials.
September 17th, 2011 at 15:38
Hey Paul,
Thanks dude, It really simple and easy steps.You explained it in very simple manner.Keep writing.
Thanks once again
September 18th, 2011 at 6:38
i followed all your steps and when running the app i get Build Failed due to the part #import…
am i missing something here??
Regards!!!
September 20th, 2011 at 7:51
thanks dude.
September 21st, 2011 at 16:22
Hi,
Thanks for the tutorial,
but i don’t have any “View-based Application” in the page to choose the template.
I’m running Xcode 4.2, can you help me ?
September 25th, 2011 at 22:31
@Nauhar Make sure you have chosen “Application” under “iOS”. it should be there. Otherwise you have a faulty installation of xcode
September 26th, 2011 at 8:15
Greate tutorial!
Hope Xcode replace the original tutorial with this
September 27th, 2011 at 7:28
Thanks dude!! was really helpful…
October 4th, 2011 at 8:16
Very nice! This is the first “HelloWorld” tutorial i actually could understand!
Thanks a lot!
October 4th, 2011 at 8:51
Your welcome! Just remember to facebook-like and flatr it off course
October 11th, 2011 at 23:35
Hi, thank you for the tutorial but i have a problem I don’t found “
HelloWorldViewController.xib” and “MainWindow.xib”can you help me please ?
October 12th, 2011 at 18:06
Great tutorial! Thank you for this. I actually got it to work.
I had the same problem as Rex, though. In the “
HelloWorldViewController.h” file, after#importit needs .So it should read:
#importand then the rest of the code.
Thank you again!
October 12th, 2011 at 18:09
Sorry! My first comment didn’t post the code… beginners error.
Meant to say:
Great tutorial! Thank you for this. I actually got it to work.
I had the same problem as Rex, though. In the “
HelloWorldViewController.h” file, after#importit needsUIKit/UIKit.h(with that command in between these: ) and then the rest of the code.Thank you again!
October 15th, 2011 at 4:55
Thanks, this got me started. I didn’t have (void)dealloc method in my ViewController.h file. Was this supposed to be created for you automatically? I’m using Xcode 4.1 on Lion.
Good Tutorial,
Thank you
October 23rd, 2011 at 10:23
Sorry but I thought it was a yawnathon. One day someone will do a series on an app design that is actually useful.
October 25th, 2011 at 14:35
@Carl, sorry you feel that way. I hope, for your sake, that “one day” will come soon. Otherwise, feel free to be that someone.
November 10th, 2011 at 0:25
I needed a quick start intro into xCode 4.1. This did the job nicely. Much appreciated.
December 4th, 2011 at 20:13
great start for beginners. thanks a lot.
December 11th, 2011 at 10:52
Paul, brill, spent hours with apple docs trying to do this!
December 12th, 2011 at 2:15
A million of thanks to you!!
December 20th, 2011 at 18:01
Good stuff, thanks, but it does need to be updated for 4.2. Many, many differences.
January 4th, 2012 at 20:53
Hi
This is a great blog and really quite helpful. But right at the start of the code in .m is the line below:
#import “HelloWorldViewController.h”
But I keep getting the message below –
“HelloWorldViewController.” file not found
How can i rectify this?
Also, once I have written this code, will it be the same for the majority of apps that I create?
Thanks
January 7th, 2012 at 12:40
Slight differences between instructions and what I found in Xcode 4.2 but otherwise, it works well. Yay. First IOS app.
January 7th, 2012 at 16:54
hi
thanks BUt My Xcode 4.2 IN IOS>Application Don’t have any View-Based Application
It’s install Fine but i don’t have it…even first menu not look like to your Xcode menu
what do i do?
January 10th, 2012 at 0:14
I was trying to do this in Xcode 4.2.1 and i had some problems with this part of the code:
@synthesize textLabel;
- (void)dealloc{
[textLabel release];
[super dealloc];
}
There were errors next to
[textLabel release]saying : Release is unavailable: not available in automatic reference counting mode….and….ARC forbids explicit message send of ‘release’Also errors on
[super dealloc]saying: ARC forbids explicit message send of ‘dealloc’thanks in advance for any help
January 10th, 2012 at 13:58
Great and helpful resource. But like James said, it needs to be updated for 4.2. I’ve handle them myself but there are many differences:
Single View Application – instead of View-based Application
MainStoryboard.storyboard – instead of HelloWorldViewController.xib
and so on….