iphone - iOS 5.1 with Xcode 4.3.1: [UIColor colorWithPatternImage:] strange behavior only on device -


when compile app in xcode 4.3.1 ios 5.1, notice there strange behavior background textures on actual device. there 1px gap in between texture tiles shown in screenshot below.

my texture 150x150 , 300x300 @ 2x.

so far i've tested same build on:

  • simulator iphone/ipad both 5.0/5.1: no bug
  • iphone/ipad running 5.0.1: no bug
  • iphone/ipad running 5.1: buggy

compare side side screenshots

i've been getting same problem since 5.1 aswell. solved doing following image in photoshop. can same in tool.

  1. load file, select all, , copy clipboard

  2. create new file in photoshop same dimension, rgb , 8bit depth 72pixels/inch resolution white background.

  3. paste image copied in step 1 image

  4. save file , use one.

after doing file displayed correctly on device , didn't have resort creating images size of display.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -