Zoom UILabel & Re-render font at correct size

后端 未结 8 2415
情歌与酒
情歌与酒 2020-12-13 07:23

I have a multi-line UILabel that I want to enable zooming on.

I embedded it with a UIScrollView and set min zoom to .25 and max zoom to 4.

8条回答
  •  [愿得一人]
    2020-12-13 08:15

    the correct way to substitute a CALayer with a CATiledLayer is as follow:

    + (Class)layerClass {
        return [CATiledLayer class]; 
    }
    

    apart, you've to set your bias detail and whatever you need.

提交回复
热议问题