In my code I have a UIView subclass that resembles a button which has a certain disabled state where a rubber tape image is added to the view. Said image is a 9patch-image which is scaled to the size of the text on the button. In some situations -- when I have multiple disabled buttons on one screen -- not all rubber tape images are displayed, they just vanish. If I substitute the 9-patch-image with the normal image, everything appears ok, that makes it very unlikely to be a bug in my code. Do you have any idea what could be causing this?
False Alarm, sorry for the noise. Turned out I tried to scale the 9 patch below its minimum size, so the behavior is pretty much undefined in that case. Thanks.
In my code I have a UIView subclass that resembles a button which has a certain disabled state where a rubber tape image is added to the view. Said image is a 9patch-image which is scaled to the size of the text on the button. In some situations -- when I have multiple disabled buttons on one screen -- not all rubber tape images are displayed, they just vanish. If I substitute the 9-patch-image with the normal image, everything appears ok, that makes it very unlikely to be a bug in my code. Do you have any idea what could be causing this?