title: How to remove overlapping uiimageview?
body: <p>I tried to change the image in the imageview but I can't seem to do that.
  My code shown below creates a new subview for each image to display. However, the images just overlap and shows the overlapped images at the end which is not supposed to be.</p>
  
  <p>.m:</p>
  
  <pre><code>for (int i = 0; i &lt; [imageArr count]; i++) {
  
          NSArray *imageNameArr = [[imageArr objectAtIndex:i] componentsSeparatedByString:@"."];
  
              check=line;
              NSString *msg = [textView.text stringByAppendingString:[NSString stringWithFormat:@"Opening image: %@\n",[imageArr objectAtIndex:i]]];
  
              [textView performSelectorOnMainThread:@selector(setText:) withObject:msg waitUntilDone:NO];
  
                 line=line+1;
  
              NSString *imagePath = [NSString stringWithFormat:@"%@/%@",jName,[imageArr objectAtIndex:i]];
              NSString *imageFile = [NSHomeDirectory() stringByAppendingPathComponent:imagePath];
              NSLog(@"------------------------------");
              NSLog(@"ImageFile: %@\n",imageFile);
              NSLog(@"Interger value: %i\n",i);
  
              UIImage *myImage = [UIImage imageWithContentsOfFile:imageFile];
              UIImageView *imageView = [[UIImageView alloc] initWithImage:myImage];
              imageView.contentMode = UIViewContentModeScaleAspectFit;
              [scrollView addSubview:imageView];
              [imageView release];
  .....
  .....
  }
  </code></pre>
  
  <p>How to show the images individually, without overlapping?</p>