UIImageView is clipping a pixel of the bottom of my UIImage...?
Posted
by akaii
on Stack Overflow
See other posts from Stack Overflow
or by akaii
Published on 2010-03-19T11:16:39Z
Indexed on
2010/03/19
11:21 UTC
Read the original article
Hit count: 245
I'm not sure what might be causing this, but UIImageView occasionally clips off about a pixel or 2 from the bottom of some square/rectangular UIImages I'm using as subviews for UITableViewCells. These UIImageViews are well within the borders of the cell, so it shouldn't be due to cliptobounds. There seems to be no consistency or pattern to which images are being clipped, nor when they're clipped, other than that it only happens to (or is only noticable in) square/rectangular icons, and only ones that are parented to UITableViewCells (or their subclasses). I'm having trouble reproducing the problem consistently, which is why I haven't posted any code this time.
Has anyone encountered something similar to this before?
I've encountered a similar bug that involved floating point values for origin/size being interpreted weirdly... but that doesn't seem to be the cause of this particular problem.
I don't need a specific solution at this point, I'm just making sure I haven't missed any well-known bugs or documented problems that involve UIImageView.
© Stack Overflow or respective owner