How to iOS item and font sizes scaling as screen size

前端 未结 3 836
暖寄归人
暖寄归人 2020-12-04 03:36

I want to make item and font sizes looking same as screen sizes. I used to use item ratio for scaling to handle different iOS screen but there was problem with item\'s size

3条回答
  •  北海茫月
    2020-12-04 04:21

    iOS categorizes all the available devices into Regular and Compact width, height combination.

    In your Xib file, Font and heights of the each item can be specified per device type meanring wR hR, wR hC, wC hR, wC hC

    Similarly, for height constraint

提交回复
热议问题