0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PDFで "Preserve Vector Data" が効かないっぽい → "Individual Scales" にする

Last updated at Posted at 2019-07-21

Xcode 11 beta4(おそらくはXcode 10でも?)でPDFを用意して、ちゃんと "Preserve Vector Data" にもチェックを入れてるのに画像がなんかぼやけてた。

どうしてだろうとしばらく色々試したところ、 Scalesが "Individual Scales" になってないとダメっぽい。"Single Scale"だとダメー。

Screen Shot 2019-07-21 at 3.30.19 PM.png

追記:

と思ったけどこれで直ってるのはiOS13だけで、iOS12以前でも直すためには以下のように書かなくてはいけなかった (Xcode 11 beta4):

imageView.image = nil
imageView.image = UIImage(named: "image-name")

まずコードで画像を指定しないといけない。Storyboardじゃダメ。そしていったん imagenil にしないといけない。なんだこれは🤦🏻‍♂️

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?