title: Image View Deprecated Method
body: <p>The content stretch property is deprecated in iOS 6.0, and I can not find an alternative that seems to work right.</p>
  
  <p>Here is the code that works but deprecated in iOS 6.0:</p>
  
  <pre><code>UIImageView *sectionsSeparator = [[UIImageView alloc] initWithFrame:CGRectMake(x, 0, separatorWidth, totalHeight)];
  sectionsSeparator.image = [self imageForSectionsSeparator];
  sectionsSeparator.contentStretch = CGRectMake(0, 0.25f, 1, 0.5f);
  [self addSubview:sectionsSeparator];
  </code></pre>
  
  <p>I tried the code below, but the images do not line up correctly:</p>
  
  <pre><code>UIImageView* sectionsSeparator = [[UIImageView alloc] initWithFrame:CGRectMake(x, 0, separatorWidth, totalHeight)];
  [sectionsSeparator setImage:[[self imageForSectionsSeparator] resizableImageWithCapInsets:UIEdgeInsetsMake(0.0f, 0.25f, 1.0f, 0.5f)]];
  [overlayView addSubview:sectionsSeparator];
  </code></pre>
  
  <p>Maybe i'm missing something, any suggestions?</p>