Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (57)

Sign In or Sign Up now to post a comment!
  • @bobbysprogramming little kiddy

  • @bobbysprogramming ...the only dislike, which makes you an idiot, a really idioticly idiotic idiot.

  • @oscarsimpson70 That guy is an Android dev.

  • it is sometimes hard to follow with new version of xcode e.g. with arc there is no need to release memory. and also I cannot find viewDidUnload.

  • 1 line of code instead of 4?

  • Could have just done labelsText.text = [sende titleFor........] why the 2 extra string variables?

  • @kristyan11 When introduced to programming, People doesn't tend to use OOP, because it might be too much for the learners. :-)

  • Buh'uhn

  • Great tut, got everything working but have a question if anyone can answer..

    What's the relevance of the *newLabelText? I just set labelsText.text = titleOfButton and it seems to work fine? Why is the second string object needed?

    Thanks

  • Hey Bucky.. great tutorial.. I am a beginner and want to know this.. The method "titleforstate" is a method of which class??? UIButton???

    Thx

  • ummmm bucky I realize this is old but when you make a property that's retained, doing self.labelsText = nil; automatically releases it. You dont have to do it again.

    Here's what happens when you do self.labelsText = nil;

    - (void)setLabelsText:(UILabel *)text // text is going to be nil, since you set it to nil if (labelsText != text) { // make sure it isnt the same thing [labelsText release]; // release old one labelsText = [text retain]; // retain new one }

    }

  • Hi.. I have been watching some other tutorial and he uses a label from NStextfield ?? is this the same asUIiLabel? He is using xcode 4 if that helps?

    Thx...also can you explain more on what UIKit is?? and UIV controller ??

  • Hi.. I have been watching some other tutorial and he uses a label from NStextfield ?? is this the same asUIiLabel? He is using xcode 4 if that helps?

    Thx...

  • Top quality video n tutoring. Thanx mate.

  • while creating NSString * titleOfButton why do you not have to alloc and init it?

  • @iJatrat he doesn't allocate it because this new NSString * titleOfButton indicate allocated value from sender.

  • SOOO CONFUZING

  • you should be nice human being.. fantastic channel yours..

  • GREAT VID!

    ~~~Only issue with comprehension:

    When you are viewing only the source, it is hard to see what you are doing clicking off of the screen. i.e. what happens at 7:40 . You click a button and the sources change... I assume you are switching between the .h and the .m files, but it would be helpful if we could see this action, or at least you say what you are doing.

    ~~~THANKS

  • just wondering y didn't u declare an UIButton in the interface builder???

  • OMG you wrote a code of more than 20 lines to show "blue" in a text label. In action script I would write this:

    mybutton.onPress = function () {

    myTextLabel = "Blue"

    }

    omg!!!

  • @geekionizado

    herp-dee-derp

    his script shows on screen whatever the name of the button is.

    using your method, your button could be named "abc" and it would still print out "blue"

    Sit down pls.

  • @DividesByZer00 in this case, my script would be:

    mybutton.onPress = function () {

    myTextLabel = mybutton.textfiel.text;

    }

  • @geekionizado

    correct, however, try to pay attention to detail.

    it says "tutorial"

    this is for beginners.

  • Thanks! I fully understand!

  • question:

    if you forget to "release" an object, after the app is quit, is that section of memory still held or does it automatically get cleared by iOS? Or would the computer be left with a section of memory that hasnt been cleared, told to hold on to so it will never go until reboot?

  • @MrSkinnyBill same thing dunno, go to his forum in the link

  • @MrSkinnyBill No. All of the memory used by an application is deallocated when an app quits.

  • man, there is so much new syntax to memorise!

  • @hobolikespie11 wow I got like 2 and i recreated a new project 3 times. I'm so confused.

  • Hey bucky you could just do :

    [labelsText setText: @"RED"];

    and have two IBActions and do the other for blue and you are all set little bit easier!!

  • you rock

  • @hobolikespie11 i got 4

  • Comment removed

  • I'm confused...

    Do you think I'm confused because I didn't watch Other 30 Objective Tutorials?

    Or not???

    Please Answer!!!

  • @ScienceTutorials Yup your meant to watch the other tuts before these ones.

  • @ScienceTutorials yeah that is the reason

  • Check you have alloc in lower case, as Bucky said. (Great tuts Bucky)

  • Great stuff! Why don't you have to alloc and init titleOfButton? Thanks!

  • Comment removed

  • oh great. You didn't use alloc and init for NSString in your objective c tutorials but now you're using them.

  • i need a mac!!!

  • @Dak552 or vmware :)

  • @phildep893 how do i do it via vmware? :)

  • @bowersbros you find a "vmware mac" 10.52gb file on thepiratebay and you follow the instructions, OH and you have to have intel virtualization (and a capable processor)

  • @phildep893 got a mac!

  • what does (id) mean?

  • @Techn0Junki3 watch his obj c tuts

  • Bucky~~You are so cool!! Man

  • You're a good teacher Bucky. Thnx again!

  • Yep!

  • Nice tut

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more