![]() |
|
UIColor colorWithPatternImage not tiling properly on non-retina iPad - Printable Version +- iDevGames Forums (http://www.idevgames.com/forums) +-- Forum: Development Zone (/forum-3.html) +--- Forum: Tools & Technology (/forum-10.html) +--- Thread: UIColor colorWithPatternImage not tiling properly on non-retina iPad (/thread-10553.html) |
UIColor colorWithPatternImage not tiling properly on non-retina iPad - funkboy - Feb 19, 2013 04:17 PM I've got a pattern image (file attached) that is not tiling properly on non-retina screens. However, it's 128x128, and from what I can tell looks good. I have attached two images showing how it tiles - one has horizontal black lines running through it. This is what it looks like on an iPad 1 and 2, which is definitely wrong. I've also attached an image showing what it looks like in the non-retina iPad Simulator - it's nice and continuous, no black lines. The incorrect, black-line-added look on an iPad 1 and 2: ![]() The correct, continuous look in the iPad Simulator: ![]() The pattern image file itself (a 128x128 png): [attachment=6] Any idea why that black line is appearing? There must be something in the file that's being interpreted by the non-retina iPad funny. It does not do this on iPad 3 and 4 since I have a different sized png file, and I guess that's causing no problems. RE: UIColor colorWithPatternImage not tiling properly on non-retina iPad - funkboy - Feb 19, 2013 04:30 PM How about I answer my own question... Tried re-saving the attached pattern image as a 32-bit png file, and everything started working. So... good thing to note if you're ever using an image as a pattern in iOS: use a 32-bit png file. This is my standard practice, but I was supplied this image file by my designer, so I didn't save it from source as a 32-bit png. RE: UIColor colorWithPatternImage not tiling properly on non-retina iPad - PowerMacX - Feb 19, 2013 06:19 PM You may want to file a bug report: http://stackoverflow.com/a/9779997 RE: UIColor colorWithPatternImage not tiling properly on non-retina iPad - funkboy - Feb 19, 2013 10:56 PM Good call - and thanks for the link! I've filed it under rdar://13251019 |