any way for vector pdf images to scale while working on in interface builder?

I have an image view in a custom table view cell. The view is scaled at 100% in IB. The image itself is a pdf vector of size 28x28. the image view is 61x61. The image appears pixelated.


I have selected 'preserve vector data' in the UIImage's resizing image attribute. It works fine on device and simulator.


any way?


Neerav

Replies

Why do you bother so much for how it appears in IB ? The most important is that it works OK on device, and even on simulator.


On IB, if you succeed to see what the image is, isn't it good enough ?

No. Its not enough. Seeing the vectors rescale helps me know that they would look fine in simulator and device types, and that ‘preserve vector data ‘ is enabled of that image. :)

I wonder if those properties are for IB use and just runtime…


Without any test, I would try using prepareForInterfaceBuilder: taht may force IB do draw after loading data


        override func prepareForInterfaceBuilder() {
  
            super.prepareForInterfaceBuilder()
          // Draw the pdf image that causes problem
        }