iPhone Programming-UIImageViews: Bouncing an Image on screen

Tags

, , , ,


A tutorial teaching you how to bounce an image around the screen. When it hits the edge it will move in the opposite direction. Main Code: -(void)imageMove { collisionImage.center = CGPointMake(collisionImage.center.x +imagePositon.x, collisionImage.center.y +imagePositon.y); if (collisionImage.center.x “GreaterThanSymbol” 290 || collisionImage.center.x “LessThanSymbol” 29) imagePositon.x = -imagePositon.x; if (collisionImage.center.y “GreaterThanSymbol” 441 || collisionImage.center.y “LessThanSymbol” 18) imagePositon.y = -imagePositon.y; } – (void)viewDidLoad { [super viewDidLoad]; imagePositon = CGPointMake(10, 10); timer = [NSTimer scheduledTimerWithTimeInterval:0.05 target:self selector:@selector(imageMove) userInfo:nil repeats:YES]; } Next Video: www.youtube.com First Video: www.youtube.com Link: developer.apple.com Website: failcake.webs.com Twitter: twitter.com Channel: youtube.com

Intro to iOS Development

Tags

,


www.E-String.com for more info. Overview of developing for iPhone, iPod and iPad. Touches on what you need to know and how to get started. I’m sure you’ll find it interesting, challenging and rewarding. If you have any questions or have any comments please do not hesitate to contact me.

iPhone Programming – Animating a UIProgressView!

Tags

, , ,


Learn how to animate a UIProgressView or “loading bar”! This is very useful for all types of applications! Subscribe to get more iPhone Programming tutorials. Also, version 1.2 of MindBlender Quiz should be approved soon! Check it out here: www.itunes.com Twitter: www.twitter.com/PixelCUBEstudio Website: www.pixelcubestudios.com