Thanks in advance for your help.
I have a UITableView in the main view of the contoller. In the prototype cell, I have a UIImageview. In the code below, everything works until I add 5 lines to apply the circular mask and border. Once I do this, the images will not load unless I scroll through the cells. The mask and border really apply perfectly. It will be great when it works ... but until then.
Of course, this has been seen before. I am a fast / objective-C newbie.
Work fast for this.
Code below;
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("mixerCell", forIndexPath: indexPath) as! MixerTableViewCell
cell.textLabel?.backgroundColor = UIColor.clearColor()
cell.selectionStyle = .None
let imageView = cell.viewWithTag(1) as! UIImageView
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
imageView.image = UIImage(named: mixerSounds[indexPath.row])
return cell
}
loading initial view
after scrolling