How To Create A Gallery on iOS

后端 未结 8 1516
自闭症患者
自闭症患者 2020-11-30 20:24

I\'m starting to develop a simple application for iOS, and this application is a simple gallery of some photo (taken from a website). The first problem I encountered is how

8条回答
  •  暖寄归人
    2020-11-30 21:11

    The difference in resolution shouldn't be an issue since iOS, if I recall correctly, scales up UI components and images to the right resolution if it detects that it has a retina display. An aside; remember to start making hi/lo-res versions of your graphics if you intend to support both screen sizes without degradation of quality.

    As long as you design things in terms of points instead of pixels (which is the way it's done in XCode 4), iOS will be able to handle scaling for you transparently. On a small screen one point will be one pixel, whereas it will be two pixels on a retina display. This allows it to render things with a crisper look on retina displays. Source

    I know this question is old, but I didn't see anyone addressing the issue of fixed widths, so I thought I'd contribute for once.

提交回复
热议问题