Objective-C iPhone Programming Lesson 15 - Scores and Randomizations

preview_player
Показать описание
I show you how to make a score indicator. We also add randomization to the buttons position each time you click it.
Рекомендации по теме
Комментарии
Автор

this does not deserve 7 likes, it deserves at least 1000

Lazerblade
Автор

i subscribed. keep it going... awesome videos!

Lazerblade
Автор

I think that it's a little more clear to typecast the buttonframe.size.blah into the unsigned type. It's really personal preference and I don't think in this case or any case it really matters. String typecasts are the only thing that really matter. Also I would suggest flipping the velocities on every click as well. =P. I'm more familiar with the c++ and c# side and have programmed a few things for the WP7, but your tutorials inspire me to do obj-c in my spare time. doing mult obj&app&disapp =D

malakov
Автор

@imopsvideo i had the same problem on my imac and on my new macbook pro i just got.I just re downloaded it again and it worked fine.

johnycinema
Автор

@imopsvideo your welcome...thats the first thing i downloaded on the new pro and when it reached 99% it said it was corrupted and download failed.So i just did it again and it worked.Did the same on my imac.Hopefully others read this comment...JUST RE DOWNLOAD IT

johnycinema
Автор

@malakov5 Alright, so it so happens that the status bar is exactly 20 pixels tall, meaning that the frame is actually 460 pixels heigh. You can get this by doing self.view.frame.size.height.

macheads
Автор

so in my video response I talked about the useable window dimensions. your 320x480 dimension will work just fine if you enable statusbar hiding while in the game view. in the plist, add a new row and add: status bar is originally hidden: and check the box. voila, the bar is hidden.

malakov
Автор

@imopsvideo I am currently having the same-ish problem. When I download Xcode from the apple developer website, it downloads, but it is corrupt. I talked to someone else who also was trying to download Xcode, and he is having the same problem.

macheads
Автор

@JailPodiOS5 Try changing it to abs(arc4random() % 320)

macheads
Автор

Hi machead101 I followed your tutorial and executed but when the score is getting updated the button goes back and starts moving from the initial location from where it starts Then I tried by commenting the setText line of UILabel then the buttons works fine as expected. On click of button it continuous to move

pramodhbm
welcome to shbcf.ru