Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
インターフェイスビルダーから呼び出された場合に適切に設定されるボタン画像があります。ただし、コード画像から設定すると、Retina ディスプレイで正しく表示されません。コードで 2x 画像を明示的に指定する必要がありますか。
2つのPNG画像がある場合、言ってみましょう
CoolImage.png
と
CoolImage@2x.png
次に、次のように呼び出します。
[UIImage imageNamed:@"CoolImage"]
すべてが期待どおりに機能します。