How to change the size of my UIImageView
in a table view to be a circle?
The snippet below is taken from the table view data source.
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell
{
let myCell = tableView.dequeueReusableCellWithIdentifier("myCell", forIndexPath: indexPath) as UITableViewCell
switch(mySegmentedControl.selectedSegmentIndex)
{
case 0 :
myCell.textLabel?.text = aaa[indexPath.row] as? String
myCell.imageView?.image = images[indexPath.row]
break
case 1 :
myCell.textLabel?.text = bbb[indexPath.row] as? String
myCell.imageView?.image = nil
break
case 2 :
myCell.textLabel?.text = cccc[indexPath.row] as? String
myCell.imageView?.image = nil
break
default:
break
}
return myCell
}