How To Make An iPhone App – [Recap] Hello World Demo XCode Practice App

[ad_1]
SUPPLEMENTARY NOTES:
LESSON PLAN:

If you missed the previous video:

Note: This tutorial is updated with annotations for Xcode 5 but was recorded in Xcode 4.

My goal is to teach a beginner how to make an iPhone app from scratch. It’s not as hard as you may think!

All you need are some basics under your belt and then from there on out, it’s all practice. In fact, I failed on my first try to learn iOS programming:

My approach to teaching you how to make an iphone app is going to be very practical and I HIGHLY recommend that you follow along on your own computer with XCode. Treat this like taking a real course and I’ll help you along the way by answering any questions.

After learning and practicing the basics of iOS programming and getting the hang of using XCode, we’ll progress to build more and more complex applications!

BEGINNER LESSON PLAN:
WEBSITE:
FACEBOOK:
TWITTER:

My channel, CodeWIthChris, is about all the aspects of building iOS apps. I’ll post video tutorials on Objective C, XCode, how to submit apps to the Apple App Store, and tutorials on building various types of apps or integrating things like analytics, advertisements etc. You might even find the odd app review here or there!

Intro music
“humm ok” by Gablé (

Keywords: how to make an iphone app, how to make iphone apps, xcode tutorial, ios programming tutorial, ios tutorial


Posted

in

by

Tags:

Comments

40 responses to “How To Make An iPhone App – [Recap] Hello World Demo XCode Practice App”

  1. evadesc Avatar

    is there any way to code for an iphone app in windows?

  2. onth3hous3 Avatar

    im in the most updated Xcode right now and the code you wrote @6:39 isn't running. I get a lot of errors i can't figure out how to fix

  3. Ellen Kirk Avatar

    Hello I can't find the xib file ? 😉

  4. Ziche Fowajuh Avatar

    Hi Can i Get your email

  5. Slot Astro Avatar

    Thank you for teaching these useful knowledge!!!!!

  6. Zachariah Cavazos Avatar

    Excellent high level over view

  7. Maher Alhasan Avatar

    it says :  Missing "[" at start of message send expression 
    expected "]"

  8. Maher Alhasan Avatar

    Chris, what's wrong with this ?
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 50)];
        label.text =@"Hello Again!"
        [self.view addSubview:label];

  9. Donald Trump Avatar

    The coding part is too hard tbh

  10. Weightlifting Ninja Avatar

    +Code With Chris in Xcode 5 wouldn't the story board still be "View Controller view" that creates the View Object?  1:00

  11. BYKjaer Avatar

    Duuude! You're freaking amazing! I'm definetly gonna follow you for a long time! Keep inspiring people! 🙂

  12. Tim Dieperink Avatar

    You're so good when it comes up to explaining things, keep this going!

  13. Nick Zolo Avatar

    ahh I'm just listening and I'm just like what ???
    i also wanted to ask is it possible to not write the code but to make it using the uilabels and buttons etc in the .storyboard?

  14. SuperConscious Avatar

    Hi Chris, great work, but i have a problem, the spelling checker corrects my text, so label displays "original" text, field leaves the text i wrote, in this case corrected, field and label  dismatch. 

  15. DeadOrAlive Avatar

    This is still confusing to me 🙁

  16. erod707 Avatar

    Can you do this if you are running windows? If so how?

  17. Alvaro Munoz Avatar

    Wtf did you say? You were speaking all techy

  18. Bhavya Shah Avatar

    Dude you rock!!….. You explain things in a way which r easy to get in the head…… Awesome videos….. Hats off. To ur efforts. (y)

  19. Balrogz Avatar

    Best definition of .h and .m I have heard so far!

  20. Jacob Smith Avatar

    Hi Chris, great video's please keep them coming!

    I have two questions, which if you could find the time to answer them would be great…

    Your diagrams suggest that AppDelegate is the first class/file to execute, but I had thought it was Main – what is the relationship and difference between Main and AppDelegate?
    Also, I am really struggling to understand Cocos2d under the bonnet, do you intend to cover cocos2d in any detail in the future?

    Thanks!

  21. Damien Aviolat Avatar

    Thanks a lot and great job for yours videos by the way!

  22. CodeWithChris Avatar

    Hey Damien, try this.. go into the storyboard and delete all of the elements in the view. Then go into the header file and delete all of the properties you created.
    Now go back into the storyboard and drag the elements onto the view again and make the connections again. The problem is usually because the element in the view is connected to a property that doesn't exist anymore. You can right-click the element to bring up a menu and see what the connections are.

  23. Damien Aviolat Avatar

    Hi, I did exactly de same as you but every time i click play, the simulator open and leave and I have a message erreur with my AppDelegate

  24. CodeWithChris Avatar

    Hey Gabe, if you start a new project and you run the project, do you see a white screen instead?? If so, then that's correct and then from there, try to add an element or two into the storyboard and run the project again, each time making sure that it appears on the screen.. and then you can determine at what point (or what action) is causing the simulator not to show anything!

  25. CodeWithChris Avatar

    Hey Will, that code looks right to me.
    Can you confirm where you wrote that code? May cut and paste the whole method? Thanks!

  26. CodeWithChris Avatar

    Sure, let me know if i can clarify something for you!

  27. CodeWithChris Avatar

    Hey it actually has nothing to do with methods. self.propertyname is a way to access properties that you have declared in the H file. Where the underscore, such as _variablename, is usually to denote private instance variables.

    For calling methods, you would put [objectvariable methodName]. So it could be [self methodName] or [some_var_pointing_to_obj methodName]

  28. CodeWithChris Avatar

    Thanks for your support! Definitely planning to continue releasing videos 🙂

  29. JAMamation Avatar

    I'm going to re-watch the video quite a few times, just so it can get in my head. Great tutorial once again, Chris 🙂

  30. ed macmuffin Avatar

    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200,50)];
    label.text = @"Hello again!";

    [self.view addSubview:label];
    hi chris, i wrote the above in viewcontroller.m and nothing happened when i play the app.. just wondering if you could fill me in?

  31. WSTurner Avatar

    hey just a simple question but I have semi learned obj-c using an online tutorial website and so i understand some things but I was wondering why you use the self.whateverMethod instead of using _whateverMethod is there a specific reason for this or is it preference. I know you cant use self. if the method is private but for public ones is there a difference?

  32. abdou abdou Avatar

    Oh! This is one of my favorite videos in Youtube! Good Job dude! Thanks a lot for your help!! Keep going ..! 🙂

  33. CodeWithChris Avatar

    Hey Shiva, sure!
    The "self" keyword refers to the view controller.
    ".view" refers to the property named view.
    So we're referring to the view controller's view.

    "addSubview" is a method of the view which is used to add UIViews and UIElements onto the view.

    "label" is a variable pointing to the UILabel object which we're passing into the "addSubview" method to add it to the view.

    Hope that helps!

  34. Shiva Balachandran Avatar

    [self.view addSubview:label];

    Can you explain the above again? I haven't understood it properly. Thanks in advance Chris

  35. CodeWithChris Avatar

    Hey Robert, can you reply here with what you wrote and also which file you wrote it in? Thanks!

  36. CodeWithChris Avatar

    Hey Yusef, thanks for watching 🙂
    Yeah, learning anything will be hard! Just like learning Guitar or Piano!

  37. CodeWithChris Avatar

    Hello michael! Thanks for commenting. I think these aren't the tutorials you're looking for unfortunately.. we're covering Objective-C which will be different from C and C++! If your second year module is making iOS apps, then that IS something that you can learn here 🙂
    Good luck with your course!

  38. Yusef Yassin Avatar

    Learning all these codes , seems so hard =/

Leave a Reply

Your email address will not be published. Required fields are marked *