iPhone Development Tutorial – 6 – Connecting Outlets and Actions and stuff

My forum thenewboston.com Ask me all questions there as well as view source code for the tutorials!

My forum thenewboston.com Ask me all questions there as well as view source code for the tutorials!

About the author

All information is submitted by independent writers, some ask for their products to be be promoted. Depending on the originality of the document and its contextual value ( Meaning if it relates to the blogs content ) then we are willing to do so. To have your article posted with a backlink please use our contact us form and let us know. If your looking for a quick link please leave a comment on the bottom, please note it will be no-follow, only well written original articles will get a do follow, and comments that are out of place will not be aproved. Thank You....

banner




48 Comments

  1. krenuds says:

    Also, I’ve been kind of forced to get into the habit of designing everything on paper, then creating the header, then linking outlets and actions before even opening the .m file. I hope this helps, I had to do a lot of research to figure this one out. Also,? THANKS BUCKY! I wouldn’t know anything about Java,Python,UDK, C++ or Obj without your tuts! Good show!

  2. krenuds says:

    @oscarsimpson70 Hey man, I had the same problem. I’m reasonably sure that the problem was in the? header file where he was declaring his IBOutlets. They must have changed something but here’s the deal. Consider:

    @interface ViewController : UIViewController{
    IBOutlet Class *Object;
    }
    @properties (retain) Class *Object

    Bucky called IBObject in the @properties rather than including it in the header. The version he was using probably was build like that but they changed it in 3.2 I think.

  3. oscarsimpson70 says:

    BTW? Tut 6, and I’m using XCode 3.2.6

  4. oscarsimpson70 says:

    When I drag? (4:06), it doesn’t recognise the label, and it’s not the code because I used the code off the forums. Please can someone tell me how to fix this. Thanks

  5. INeedAName101 says:

    @TheWitzigSpritzig ignore my comment? i was young and stupid sorry

  6. robertlam18 says:

    We have assigned an action to the two buttons etc. Where in? the code would we see this thanks.

  7. SavvyEntrepreneur1 says:

    uncheck storyboard and use .xib when starting a new project to follow this tutorial with? xcode 4.1

  8. SavvyEntrepreneur1 says:

    nothing is the same with the new version extremely frustrating .. i give credit to the talented developers who not only? understand the basics but can create amazingly complicated apps and the sell them at 99 cents

  9. leonardotmcosta says:

    Gold.?

  10. gazo54ify says:

    Test and keep an iPhone 4s for free? at fresh-phones(dot)com

  11. TheWitzigSpritzig says:

    for guys using Xcode 4.1 :
    you have to press “alt” when connecting the buttons’ “Touch Up Inside” and the? File’s Owner
    I also put the “housekeeping stuff” in the ViewController.m equal to the one in Bucky’s code
    Hope i could help you :D

  12. watchmen22 says:

    Nice tutorial.?

  13. MrAzulay says:

    I dont get any dealloc method generated.. Does that mean? i dont have to release em? Using xcode 4.1

  14. carmiaca says:

    @TexasRable
    I did? it and it works, so I don’t know why he created the interim NSString…

  15. 459luker says:

    @ReyCeb Thats what i thought… It seemed like the whole thing with ‘newLabelText’ was pointless because you can just assign the text directly from the titleForState, and so im a little confused as to why he did it the long way. Maybe to show the use of variables?

    Dont get me wrong though, love the videos they are? fuckin quality.

  16. ReyCeb says:

    this is the simple? way:
    labeltext.text = [sender titleForState:UIControlStateNormal];
    because the method “titleForState” return a NSString object :)

  17. paradise997 says:

    The title is? pro :D “and stuff…”

  18. muhammadshukri82 says:

    Thx a lot for your iphone tutorials. Thx for all the little explanations. And also? love your sensevof humour!

  19. stefanhen83 says:

    Good tutorials, watched them till? 1. The slower pace makes it easer for beginner programmers to follow this. I think this app could have been done in one vid. But it would not have been this thorough. Good work! and thanks for sharing!

  20. TexasRable says:

    you could set the labelsText.text? = titleOfButton on the clicked action, couldn’t you??

  21. Khum4r says:

    it crashes when i click a? button

  22. visualskyman says:

    Thx, finally? get code to work with UI..

  23. techexxpert says:

    @CoD6QuIcKScOpEs After you double click? the .xib file, you a new window will open up. And after you’ve got the right column up, there is a box just similar to 1:42 drag a label from that box into the .xib box just like Bucky does at 0:50.

  24. c4life2828 says:

    Everyone is raving about this iPhone 4s. Personally I think it is a awesome phone. But, other’s say it is a peace of crap. Would you like to check it out for free? This is far from spam my friend and please don’t take? this the wrong way. If interested, Text ( free4u ) to ( 41242 ). Free of charge. Also, add me PLEASE :) Thanks

  25. TheIphonedevelopment says:

    very helpful video especially for those who are aspiring to be an Iphone? developer. if you want to make a career out of your hobby,you can subscribe to my channel and watch the video for some tips on how to become an Iphone developer. Pls feel free to leave a comment.

  26. c4life2828 says:

    Text? ( free4u ) to ( 41242 ). This is for all iPhone lovers only. Good Stuff!

  27. c4life2828 says:

    Text ( free4u ) to ( 41242? ). I have info here on companies giving away iPhones. Any takers?

  28. GBmagic100 says:

    you seriously people are arguing about PING or PNG?? ¬-¬ Geez, bunch of idiots.

  29. JackKud says:

    it didn’t work :( ? still shows the cocos2d icon! someone help plz?

  30. csprestonable says:

    Learning to build mobile apps is not an easy endeavor. It can be done, but you must have the drive & aptitude (plus the? time) to overcome the challenges. If you are looking to create a mobile app for your business (or idea), you probably should hire a qualified professional.
    I? know many talented (& affordable) app developers (freelancers & agencies). I’d be happy to provide an introduction.
    Brett
    dev (at) cspreston (dot) com

  31. GBmagic100 says:

    Yay it’s awesome to have Photoshop knowledge :D ?

  32. jleesmith69 says:

    CHECK? OUT MY CUSTOM ALIENWARE M11X LAPTOP AND VERY HIGHLY CUSTOMIZED IPHONE 4, ITS BETTER THAN THE IPHONE 6!!!

  33. Davidka1978Xoroshiy says:

    Good tutorial.?

  34. 5lej says:

    @rara48486 @rara48486 Search for the? folder which has the plist file ?

  35. rara48486 says:

    I DONT HAVE THE RESOURCES FOLDER? WHAT DO I DO?

  36. scruffythebug says:

    gimp also? works if you don’t have of photoshop and it’s free

  37. spy85able says:

    Can u? do a tutorial on how change the name of your app so it has a cool name on the screen

  38. ABuddyBoy says:

    Cool, thanks? dude for the Icon tut…

  39. sanderboy987 says:

    @D4aZeD Hello I need icon for my app but i’m? not so good with photoshop or paint can you make a icon for me.
    the idea for my icon is a turtle (2d), just a turtle.

  40. SuperAugenAuf says:

    building apps without developers in a short? of time. snappii.com

  41. KorHenri says:

    PNG means “Portable Network Graphics”.?

  42. vMattmcd says:

    you don’t need to make a 57 x 57 png icon. if you use any image file at any size? it will automatically scale it down and round out the edges. just FYI =)

  43. jonmcd123 says:

    Anyone who doesn’t have the cash for photoshop, use Gimp. It’s free and is easy to?
    use.

  44. kostbill says:

    @vancar6 try to touch the screen of the iphone simulator with the mouse. Just like touching it with your finger. Then move your mouse exactly like the sliding of? your finger to your left and your icon will appear.

  45. scoobly says:

    Thanks Bucky. Just learning iphone sdk here. Finding it? tricky but these videos are great.

  46. stanmarshk says:

    photoshop is? the bomb

  47. MrSkinnyBill says:

    How to PREVENT the gloss effect:

    In the appname-Info.plist file, press the little “add line” button.
    Type in “Icon already includes gloss effects” on the left, and then press enter.
    On the right, tick the box next to “Icon already includes gloss effects”

    Build and run…
    Icon no longer has gloss.? Just untick to add gloss again.

  48. MrSkinnyBill says:

    NOTE FOR ICONS – There are different sizes for iPhone 4/iPt 4th Gen, iPad and older iPhone/iPod touch models:

    114×114? – iPhone 4/iPod Touch 4th Gen
    57×57 – Older iPhone/iPt (as mentioned in video)
    72×72 – iPad

    For other sizes, including App Store, spotlight etc app sizes, go to goo.gl / ZmJw

Leave a Comment

You must be logged in to post a comment.

Powered by WordPress | applepress .org Blog