Get Updates By E-mail 

uiimage

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!


  •  
  •  
  •  
  •  
  •  

Save A UIImage Outside Of The Photo Album

  •  
  •  
  •  
  •  
  •  

In an earlier post I pointed out a tutorial on how to save pictures taken with the camera to a photo album.

John Muchow has written a new tutorial this time showing how to save PNG or JPG images to the documents directory.

This is done by using the UIImageJPEGRepresentation or UIImagePNGRepresentation functions to save the images, and writing to the documents directory.

The full code snippet can be found here: Save UIImage Object As A PNG or JPEG File

If you have a tutorial, or some news that you think would be useful for iPhone developers you can submit it here.

[Source: iPhone Developer Tips]


  •  
  •  
  •  
  •  
  •