Tag Archives: iphone

5. iPhone Server Communication

We can communicate in many ways with server. One way is using JSON, this is explained as below: 1. Starting Communication [[[NSURLConnection alloc] initWithRequest:[NSURLRequest requestWithURL: [NSURL URLWithString:urlStr]] delegate:self startImmediately:YES] autorelease]; //urlStr is NSString ref 2. Start receiving data – (void)connection:(NSURLConnection *)connection didReceiveResponse: (NSURLResponse *)response{ [receivedData setLength:0]; } //receivedData is NSMutableData ref 3. Get data in [...]

4. iPhone Physics Engine Library

We have open source Chipmunk library to implement physics engine in iPhone gaming apps. Here is the source This source is the powerful physics 2D engine to use in iPhone game programming. We can have every motion of any real world object in whatever place it is. We can add gravity, friction, external force which [...]

2. UIImage Tips…

There are several things which we need to keep in mind when we use UIImage as follows: 1. UIImage has 4 class methods to create its autorelease instance and 3 instance methods to load image. 2. When you want to cache the image, so that it can be easily loaded in no time whenever required, [...]

1. UIImageView AnimationImages Memory Leak Mistry Solved:

We all know that to do animation using UIImageView, we load images in the NSArray and then set it to animationImages property of UIImageView and then call function startAnimating. But when you try to repeat animation by loading again and again with different images using this method, you start experiencing Crash on iPhone device with [...]