"initWithImage" is a image declaring method that is used to declare the image while while creating a UIImageView.
Syntax of initWithImage method
- (id)initWithImage:(UIImage *)image;
a simple example
//declare the Image
UIImage *one = [UIImage imageNamed:@"myImage.png"];
//creating a UIImageView
UIImageView *imageView1 = [[[UIImageView alloc] initWithImage:one] autorelease];
//to add image on view
You can write and run the above given lines of code into the "ViewDidLoad" method.
Ask your questions, our development team will try to give answers to your questions.