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!
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!
@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!
@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
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!
NickD680 6 days ago
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 6 months ago
@seany242 You need to make another ball variable and velocity variables, with different variable names.
macheads101 6 months ago
what is += and *=
seany242 6 months ago
Dude, your tutorials are amazing. They deserve way more publication and views.
Great vids, keep 'em rolling bro :)
MysteriousKiwi 7 months ago
@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.
macheads101 1 year ago
dude how did you get so good at all this mac stuff?
froyboy4life 1 year ago
@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!
macheads101 1 year ago
objective-C would be a bit more difficult if XCode wasn't so good. the syntax is unruly.
malakov5 1 year ago
@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 1 year ago
@macheads101 I love overloading the operators. Really messes with my professors. Yes it does get messy. I still prefer java.
malakov5 1 year ago
@malakov5 Hmm I do prefer the java syntax as well. Pointers makes objective-c a lot simpler to understand...
macheads101 1 year ago