tortuga22 / Tortuga22-NinePatch

Tortuga22's NinePatch Library
http://www.tortuga22.com/
Other
114 stars 27 forks source link

NinePatch image does not appear, if being used multiple times #2

Closed mickeyl closed 12 years ago

mickeyl commented 12 years ago

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?

mickeyl commented 12 years ago

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.