开发者

iPhone sdk - UIImageView overlap issue

开发者 https://www.devze.com 2023-04-03 21:42 出处:网络
I have a UITableView as shown in the attached image. I use a UIImageView in the custom cell of the UITableView and I rotate to some d开发者_JAVA技巧egrees. The images in the UIImageView are fit accord

I have a UITableView as shown in the attached image. I use a UIImageView in the custom cell of the UITableView and I rotate to some d开发者_JAVA技巧egrees. The images in the UIImageView are fit according to their size. The problem is, some of the images are overlapped on the view of next cell. Though the UIImageView exceeds the boundary of the cell, I do not want the image to be overlapped. Someone help me to come out of this problem. Thanks in advance.

iPhone sdk - UIImageView overlap issue


Set the property masksToBounds: YES for the UIImageView.

0

精彩评论

暂无评论...
验证码 换一张
取 消