title: How to optimize UIImageView
body: <p>This is my program:
  I have cache variable <code>@property (nonatomic, retain) NSMutableDictionary *cache;</code>, where I store my UIImageViews. Images size is 768 × 1024 .</p>
  
  <pre><code>UIImageView *cap_1 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"face1_cap_0.png"]];
      [self.cache setObject:cap_1 
                           forKey:@"cap_1"];
      [cap_1 release];
  
      UIImageView *cap_2 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"face1_cap_1.png"]];
      [self.cache setObject:cap_2 
                           forKey:@"cap_2"];
      [cap_2 release];
  
      UIImageView *cap_3 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"face1_cap_2.png"]];
      [self.cache setObject:cap_3 
                           forKey:@"cap_3"];
      [cap_3 release];
  
      UIImageView *cap_4 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"face1_cap_3.png"]];
      [self.cache setObject:cap_4 
                           forKey:@"cap_4"];
      [cap_4 release];
  
      UIImageView *cap_5 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"face1_cap_4.png"]];
      [self.cache setObject:cap_5 
                           forKey:@"cap_5"];
      [cap_5 release];
  
      UIImageView *cap_6 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"face1_cap_5.png"]];
      [self.cache setObject:cap_6 
                           forKey:@"cap_6"];
      [cap_6 release];
  </code></pre>
  
  <p>I use UIImageViews in PanGesture, every 50 pt of swipe I add each UIImageView on my main view. I have lagging only in first time then I add all UIImageViews on main view, but for all another times it works fast. How can I optimize first swipe?  Or please advise me another way do to it.</p>