thanks but ...
i tried the folowing modified code, still it crashes
UIImage* img1 = [UIImage imageNamed
"groundhog2.jpg"];
UIImage* img2 = [UIImage imageNamed
"noframes.gif"];
NSArray *images = [NSArray arrayWithObjects:img1,img2];
UIImageView* imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0.0, 0.0, 300.0, 300.0)];
[imageView setAnimationImages:images];
[imageView setAnimationRepeatCount:2];
//imageView.image = [UIImage imageNamed
"noframes.gif"];//img;
imageView.center = self.center;
self.picView = imageView;
//[imageView startAnimating];
[imageView release];
[self.picView startAnimating];
[self addSubview
icView];