iOS - UITableViewCell image adjust/resize

后端 未结 4 712
抹茶落季
抹茶落季 2020-12-29 09:08

I have create a table view and have filled its cells with text. What I\'m trying to do is add an image to the cell but whats happening is the image is coving the whole cell

4条回答
  •  爱一瞬间的悲伤
    2020-12-29 09:53

    Can you edit the image itself? Try editing the image down the size you'd like and manually rounding the corners. Then call

      cell.imageView.image = [UIImage imageNamed:@"test3.jpeg"];
    

提交回复
热议问题