Objective-C iPhone Programming Lesson 11 - CoreGraphics Animation

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,987
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 5, 2011

Draw and animate motion with CoreGraphics. Download the source code here: http://www.jitsik.com/uploads/Macheads/CoreGraphicsAnimation.zip

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (macheads101)

  • also if i want to make 2 balls, ive copied the code for the moveBall and the setUpView for my second ball but it still isnt displaying a second ball. I think my problem is in drawRect, how do i make a second one of those because if i just copy the same one it displays an error. Thanks!

  • @seany242 You need to make another ball variable and velocity variables, with different variable names.

  • objective-C would be a bit more difficult if XCode wasn't so good. the syntax is unruly.

  • @malakov5 At first it might seem unruly, but the whole thing makes a lot of sense. Compared to C++ with operator overloading, I very much prefer the Objective-C syntax

  • @macheads101 I love overloading the operators. Really messes with my professors. Yes it does get messy. I still prefer java.

  • @malakov5 Hmm I do prefer the java syntax as well. Pointers makes objective-c a lot simpler to understand...

see all

All Comments (16)

Sign In or Sign Up now to post a comment!
  • Really good video! I'm just starting to learn iOS software after doing some Python. I find this so much harder, and much more confusing, but your video is very straightforward. Well done!

  • what is += and *=

  • Dude, your tutorials are amazing. They deserve way more publication and views.

    Great vids, keep 'em rolling bro :)

  • @bababoy10 Declare an NSTimer* variable in your .h file. In the .m, where you say [NSTimer scheduled...], set the timer object equal to that. On touch, call [yourTimerVariable invalidate] and set it to nil.

  • @froyboy4life So many people ask me this question that I might make a video on it! Anyway, I got good at this stuff over TIME. I have been programming for over three years, and that is what i primarily spend my time on. Unlike other kids my age who spend time with sports, I spend a few hours a day working on apps and programming. This is something that is hard to commit to, and so don't expect to get the same results easily!

  • dude how did you get so good at all this mac stuff?

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