How To Build iPhone Apps – S01E05: Building Our Demo App in XCode Part 3

[ad_1]
Source Code:

In this final episode 5, we finally put what we’ve learned into action! We’re going to start coding in XCode 4. Follow along and build a simple dice rolling app.

This is Part 3 of 4 for Episode 5.

In case you missed earlier episodes:

How To Build iPhone Apps – S01E01: Introduction, Demo App and Installing XCode

How To Build iPhone Apps – S01E02: XCode Interface Introduction and Tutorial

How To Build iPhone Apps – S01E03: iOS Architecture Model View Controller (MVC)

How To Build iPhone Apps – S01E04: Your XCode Project Files Demystified

How To Build iPhone Apps – S01E05 Part 1: Building Our Demo App in XCode

How To Build iPhone Apps – S01E05 Part 2: Building Our Demo App in XCode

Learn How To Build iPhone and iPad Apps. A video tutorial series aimed at beginners. Step by step tutorials to build your skills in iOS Development!

The goal is to get apps submitted into the Apple App Store and to have fun doing it! I will teach you the basics of using XCode, architecting iPhone and iPad applications, designing the user interface, coding it in Objective C, all the way to monetizing it and putting it into the Apple App Store.

This first tutorial series of videos is going to teach you the basics of iOS development before we can get into some serious app building. We’re going to build a basic iPhone demo app together step by step to teach you the basic building blocks of iOS development. By the end of this series (approximately 8 videos) you’ll have a good understanding of what an iPhone view is comprised of and how to put different user interface elements on the screen and make them respond to the user’s touch.

Follow along and please remember to COMMENT below to ask questions, LIKE this video to keep me going and SUBSCRIBE to never miss a video and get free giveaways once I reach 500 subscribers!


Posted

in

by

Tags:

Comments

37 responses to “How To Build iPhone Apps – S01E05: Building Our Demo App in XCode Part 3”

  1. reeaz ali Avatar

    couldn't understand crap

  2. C. Ichongiri Avatar

    Great tutorial, Chris. Just as a suggestion, it would be more enjoyable if your screen wasn't zoomed out, and hence, the text tiny. Keep up the good work.

  3. Mike K Avatar

    dang, I screwed up πŸ™ Β I just keep getting a black screen when I run it…

  4. jprpic Avatar

    your tutorials are so good keep it up man!

  5. CodeWithChris Avatar

    Hello! I've created updated videos for this demo that I'm going to upload this week. Please stand by and thanks for watching! πŸ™‚

  6. DBART2001 Avatar

    Mine comes up with errors

  7. CodeWithChris Avatar

    Hey Jared, do you mind checking out my latest videos on Basics? They're much more oriented to the beginner and you should have a better time with them. Sorry!

  8. CodeWithChris Avatar

    Glad to hear it Will, Thanks for watching!

  9. Will Neufeld Avatar

    Hey man thanks I couldn't figure it out so I just restarted and it worked once again thanks very much great videos keep it going

  10. CodeWithChris Avatar

    Hey Will, that's awesome that you got the die to appear!
    Here are some things to check:

    Do you have two DieViews in your XIB file?
    Do you have a property for each DieView?
    Also in the button handler method, are you calling the method to show the die for each DieView?

  11. Will Neufeld Avatar

    Hey Chris This is my first programming project I ran my app and hit roll but only one die appeared where do u think I should look for the problem plz help me!!! Ps really good videos

  12. CodeWithChris Avatar

    Glad to hear it.. i'm really not happy with these dice videos.. Next week I'm releasing new and improved versions that will hopefully avoid confusion like this! Thanks for watching!

  13. CodeWithChris Avatar

    Hello sraldous, "num" refers to the parameter that gets passed into that "showDie" method.
    Does your showDie method look something like this? "-(void)showDie:(int)num"

  14. CodeWithChris Avatar

    Hello Mitea, this error could be any number of issues but usually due to xcode not being able to find a file or name that you've referenced in your code. Can you email me so i can take a closer look?

  15. Mitea Uenishi Avatar

    Hey Chris I need some help I have this error what should i do I'm new to programming this is actually my first coding project
    Undefined symbols for architecture i386:
    "_OBJC_CLASS_$_DiceDataController", referenced from:
    objc-class-ref in ViewController.o
    ld: symbol(s) not found for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

  16. sraldous Avatar

    Ignore, I spotted the mistake. "." should have been a ",". fixed myself πŸ™‚

  17. sraldous Avatar

    Great tutorials. Getting an error though: Property "num" not found on object of NSString in DieView.m NSString *filename = [NSString stringWithFormat:@"dice%d.png". num];

  18. CodeWithChris Avatar

    haha i know how you feel Zouk!
    When i solve a tough problem I always feel the same way too πŸ™‚ Thanks for watching!

  19. Zouk Birmingham Avatar

    I GOT IT, I GOT IT!! Don't worry. I had a space between "dice" and "%d" and it wasn't picking up the image name "dice%d". I feel like a genius! πŸ™‚

    hehe this programming business is fun! (okay stop laughing – complete beginner!)

  20. Zouk Birmingham Avatar

    Hey Chris, I've been trying to find a series of videos for complete beginners for a while and yours is by far the easiest!! Really great, please keep going. Large text/zooming in really helped. I've completed the videos and also my UIlabel is showing the sum = … its not showing the die picture. I'm not sure what i'm doing wrong. Could you suggest a few things to check.

    Thanks and please keep going with iphone and objective C videos!!

  21. 5RO38 Avatar

    Oh nevermind. I closed the project and then reopened it and it worked! Super! Love your videos Chris!

  22. 5RO38 Avatar

    Build is successful but app immediately throws an exception after button click.
    "2013-08-09 15:07:07.115 iPhoneAppTutorial[739:11303] -[UIRoundedRectButton showDie:]: unrecognized selector sent to instance 0x758b150
    2013-08-09 15:07:07.151 iPhoneAppTutorial[739:11303] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIRoundedRectButton showDie:]: unrecognized selector sent to instance 0x758b150'
    libc++abi.dylib: terminate called throwing an exception
    (lldb)"

  23. edcosine Avatar

    I love your videos but I cant see them most of the time. Suggest focusing in on the code part and not your whole screen. I want to learn these but looks like I have to get a bigger screen first! I cant see!!!!

  24. Hardi Oosthuizen Avatar

    Hey Chris,
    When I try to run my app it comes up with an error message like "Expected Identifier".
    Any Idea what's going on? Please try to get back ASAP
    By the way thanks for all the help and the vids

  25. i dnahacks Avatar

    excatly what happens to me.
    Great videos though in general Love THEMM!!!

  26. Brett Mills Avatar

    Hey Chris everytime i click the roll button Xcode pops up and it brings me to the debugging tab and the roll button is frozen on the IOS simulator screen.Thanks I luv ur vids!!

  27. Fubajizzle Avatar

    Chris i have tons of errors and i don't know why.
    – (void)showdie(int)num; says that this an expected method body
    if (self.dieimage == nil) expected identifier or '(' as well as expected ')'
    self.dieimage.image = [UIImage imagenamed:filename]; Unknown type name 'self' also expected identifier or '('
    } this says Extraneous closing Brace.

    Im just a kid and im looking at your websites blog posts as well as your just to get help
    Thanks Chirs and keep making videos they are great!

  28. henk henkeinstein Avatar

    Hi Crish,

    You have amazing videos πŸ™‚

  29. Iain Bryce Avatar

    Hi Chris. I got to the end of this video and i went to run the app and what happened is that i clicked on the button but no dice came up on the screen. i double checked the code and some settings .I'm not to sure where i have went wrong. any help would be helpful.

  30. deadmeh Avatar

    Wow, it's so hard to read anything. Granted you fix it with your objective C tutorials but right now it's pretty annoying.

  31. CodeWithChris Avatar

    Thanks for the feedback ssokol! I have made my fonts larger in my latest videos!

  32. CodeWithChris Avatar

    Hey Boss, sorry for the late reply! But it's complaining that the variable "roll" is not declared.. in the "RollButtonClicked" method, you should change "int.roll" so it reads "int roll" instead and that will get rid of the message. The proper way to declare the variable is: variabletype followed by a space, followed by the variable name. Hope that solves your issue!

  33. BossNZ Avatar

    Hey Chris I cant quite find what is wrong in this code, It keeps saying – use of undeclared identifier 'roll'.

    – (IBAction)RollButtonClicked : (id)sender {

    int.roll = [self.model getDiceRoll];

    self.firstDie ShowDie:roll;

    [self.secondDie ShowDie:roll];

    ^ That is in view controller.m

    And yes I have put this code into DiceDataController.h

    – (self.int) [getDiceRoll];

    self.int = roll

    @end

    ^ Any help would be amazing. Thanks Chris πŸ™‚

  34. TopBananaGames Avatar

    This is my new channel @codewithchris please reply to this one for the AndIFailed's comment

  35. ssokol91 Avatar

    Love all your videos Chris. I wish the source code was a little larger.
    Thanks for great tutorials!

  36. CodeWithChris Avatar

    Hey guys! Let me know if you have any questions in the comment section and i will answer them within the day!

    Please help me gain exposure by liking, sharing and commenting my video if you enjoyed it! Thanks!

Leave a Reply

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