title: error while setting image in imageView in iphone
body: <p>I have written a code for setting imageview ...as per the button clicked...but my problem is when i press the button it is giving me the error like...too many arguments to function ImageNamed...while executing this line...  </p>
  
  <p><code>UIImage* photo = [UIImage imageNamed:@"robort %d.jpg",x];</code></p>
  
  <p>the whole code is....</p>
  
  <pre><code>-(void)buttonClicked:(UIButton*)button
  {
  NSLog(@"%d",button.tag);
  int x;
  x=button.tag;
  // Create the image view.
  UIImage* photo = [UIImage imageNamed:@"robort %d.jpg",x];
  NSLog(@"%d",x);
  CGSize photoSize = [photo size];
  UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0.0, 0.0, photoSize.width, photoSize.height)];
  [imageView setImage:photo];
  [self.view addSubview:imageView]; }
  </code></pre>