1

I have a UIImageView on tableview Cell, it worked fine before
but now it disappear on device

I update to Xcode 8 ios 10
I trun on Xib, it show up, I choosed
then the UIImageView never show again
enter image description here

screenShot
enter image description here

It weird, I can see the UIImageView on View Hierarchy but it disappear on device

Edit for answer
I found this question clipsToBounds causes UIImage to not display in iOS10 & XCode 8

VictorJi's answer is worked move layer.masksToBounds and layer.cornerRadius from awakeFromNib to drawRect:(CGRect)rect then the UIImageView show again

But I don't understand why just affect UIImageView, UILabel is ok

Community
  • 1
  • 1
xxi
  • 1,430
  • 13
  • 24

0 Answers0