what is the code to detect whether ios app running in iPhone, iPhone Retina display, or iPad?

前端 未结 5 1655
走了就别回头了
走了就别回头了 2021-01-02 06:03

what is the code to detect whether ios app running in iPhone, iPhone Retina display, or iPad?

Background:

  • for my iPhone application I have defined i

5条回答
  •  悲哀的现实
    2021-01-02 06:12

    see @interface UIDevice

    as well as the documentation at -[UIImage scale] (although there are better resources, which will likely be posted).

提交回复
热议问题