3 Replies
      Latest reply on Jul 13, 2019 1:49 PM by dank
      Raymanman Level 1 Level 1 (0 points)

        Hey everyone

         

        I'm having issues in iOS 9 with tiled images loaded from an image asset catalogue. If I configure the image to be sliced with the insets as (0, 0, 0, 0), and tile the center, and assign this image to a UIImageView (in code or via storyboard), the image tiles nicely across the image view on devices pre iOS 9. The problem on iOS 9 is the image is rendered at the top right corner of the image view, and the edges are stretched across the rest of it. The issue occurs on the device and simulator. Attached are screen shots on iOS 8.4 and 9.0 beta respectively

         

          

        Edit: it looks like the images aren't showing up in the post, so I uploaded them here

        ios 8.4: http://oi57.tinypic.com/29lo77m.jpg

        ios 9.0 beta: http://oi59.tinypic.com/2vlljpd.jpg

         

        I can attach a small sample application to demonstrate the issue if needed.

        Has something changed in iOS 9 I am unaware of, or is this a bug?

        • Re: Tiled UIImage asset issue in iOS 9
          jamieBAF Level 1 Level 1 (15 points)

          I noticed this as well when changing our project's deployment target from iOS 8.0 to 9.0.

           

          The image asset has

              Slices: Horizontal and Vertical

              Center: Tiles

           

          Before changing the deployment target, I only needed to specify the image like so:

          imageView.image = [UIImage imageNamed:@"Lines"];
          

           

          To get the same result under iOS 9, I have to do this:

          imageView.image = [[UIImage imageNamed:@"Lines"] resizableImageWithCapInsets:UIEdgeInsetsZero resizingMode:UIImageResizingModeTile];
          
          

           

          That is fine for code, but the problem is with using the image in the Launch Storyboard. 

          • Re: Tiled UIImage asset issue in iOS 9
            ddunham Level 1 Level 1 (10 points)

            I have seen something a bit like that but only with vertical tiling (it shows up fine in IB but not in Simulator). I have horizontal-only tiled images and they work just fine. I just added a vertical-only one but it smears.

            • Re: Tiled UIImage asset issue in iOS 9
              dank Level 1 Level 1 (0 points)

              Did you ever figure this out? Apparently it's still and issue