Get Updates By E-mail 

Article Written By:
Johann Dowa

Beginners Tutorial: Basic Touch And Animation

  •  
  •  
  •  
  •  
  •  

Many put off using basic core animation and uikit as a way of making games almost by default.

The fact of the matter is that core animation is probably the easiest way to create a game on iOS. With a more complicated game you will run into performance issues,  but for many games it works just fine, and you can lay things out in interface builder.. perfect for someone just starting out since the concepts will work across different UIKit interface components.

I found this great tutorial for beginners from Tudor Munteanu that is worth checking out covering basic touch and animation which you can find here:
Learning About Touch Events And Basic Game Animation

There is a small error in the code, and just in case it hasn’t been fixed yet you need to change the lines:

UIButton *button = [[UIButton buttonWithType:UIButtonTypeCustom]
initWithFrame:CGRectMake(240, 150, 50, 50)];

To:

UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
button.frame = CGRectMake(240, 150, 50, 50);

Thanks for reading, if you liked this then please share it!


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments