title: UISegmentedControl setImage: Bug in iOS7
body: <p>I have a UISegmentedControl in my app. As of iOS7 GM, the images I use are not showing up when run on iOS7 devices. Anyone else having this problem?</p>
  
  <p>Here's what it looks like in iOS6.1 and earlier<a href="https://i.stack.imgur.com/w86wb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w86wb.png" alt="iOS6-ScreenShot"></a>
  .</p>
  
  <p>and here is what it looks like in iOS7<a href="https://i.stack.imgur.com/ZBhgq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZBhgq.png" alt="iOS7-ScreenShot"></a>
  .</p>
  
  <p>Here is the code:</p>
  
  <pre><code>self.theSegmentedControl.frame = CGRectMake(self.theSegmentedControl.frame.origin.x, self.theSegmentedControl.frame.origin.y, 320, 35);
  [self.theSegmentedControl setBackgroundImage:[UIImage imageNamed:@"img_toggleInactive"] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
  [self.theSegmentedControl setImage:[UIImage imageNamed:@"btn_onceActive"] forSegmentAtIndex:0];
  [self.theSegmentedControl setImage:[UIImage imageNamed:@"btn_recurringInactive"] forSegmentAtIndex:1];
  [self.theSegmentedControl setImage:[UIImage imageNamed:@"btn_scheduledInactive"] forSegmentAtIndex:2];
  [self.theSegmentedControl setDividerImage:[UIImage imageNamed:@"separator"] forLeftSegmentState:UIControlStateNormal rightSegmentState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
  </code></pre>
  
  <p>Has anyone found a workaround to this?</p>