title: Images in UIImageView not showing in UITableView when circular mask is applied to the ImageView unless scroll
body: <p>Thanks in advance for the help.</p>
  
  <p>I have a UITableView within a main view contoller.  Within the prototype cell, I have a UIImageview.  In the code below everything works until I add the 5 lines to apply a circular mask and border.  Once I do that, the images will not load unless I scroll the cells. The mask and border do get applied perfectly however.  Will be great when it works... but until then.  </p>
  
  <p>Certainly this has been seen before.  I'm a swift/objective-C newbie.</p>
  
  <p>Working in swift for this one.</p>
  
  <p>Code below;</p>
  
  <pre><code>func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCellWithIdentifier("mixerCell", forIndexPath: indexPath) as! MixerTableViewCell
  
      // set label background color to clear
      cell.textLabel?.backgroundColor = UIColor.clearColor()
  
      // set highlight selection to none
      cell.selectionStyle = .None
  
      // set image for cell
      let imageView = cell.viewWithTag(1) as! UIImageView
  
      // put circular mask and border. This is the problem code that causes initial load of the tableview images to show up blank.
      imageView.layer.cornerRadius = imageView.frame.size.width / 2;
      imageView.clipsToBounds = true;
  
      let color1 = UIColor(white: 1.0, alpha: 0.5).CGColor as CGColorRef
      imageView.layer.borderWidth = 2;
      imageView.layer.borderColor = color1
  
      // assign image
      imageView.image = UIImage(named: mixerSounds[indexPath.row])
  
      return cell
  }
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/yg7wx.png" rel="nofollow">initial view load</a></p>
  
  <p><a href="http://i.stack.imgur.com/6kTIQ.png" rel="nofollow">after scroll</a></p>