circle image in cell imageView and how to resize it?

后端 未结 3 932
孤街浪徒
孤街浪徒 2021-01-29 00:21

I have in a ViewController tableView with the identifier \"Cell\". This is my code:

func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSInd         


        
3条回答
  •  青春惊慌失措
    2021-01-29 00:48

    You cannot change a frame width or height independently. You have to set the complete frame. In Objective C it would be something like

    cell.imageView.frame = CGRectMake(cell.imageView.frame.origin.x, cell.imageView.frame.origin.y, 100, 100);
    

提交回复
热议问题