CATextLayerのRetina対応
RetinaなiPadでCATextLayerの文字がぼやけているのに気づいた。
UILabel等はくっきり表示されている。
調べるとCALayerのContentsScaleを適切に変更しなければならなかった。
CATextLayer textLayer = new CATextLayer();
textLayer.ContentsScale = UIScreen.MainScreen.Scale;
これで綺麗に表示されるようになった。
RetinaなiPadでCATextLayerの文字がぼやけているのに気づいた。
UILabel等はくっきり表示されている。
調べるとCALayerのContentsScaleを適切に変更しなければならなかった。
CATextLayer textLayer = new CATextLayer();
textLayer.ContentsScale = UIScreen.MainScreen.Scale;
これで綺麗に表示されるようになった。