UIView. What are the maximum bounds dimensions I can use?

前端 未结 3 1774
刺人心
刺人心 2020-12-19 08:45

Does anyone happen to know the maximum value for someView.bounds.size ? I\'m creating a view hierarchy with where the accumulated bounding-box of all child views is equal to

3条回答
  •  执笔经年
    2020-12-19 09:29

    I would not think there is a conceivable limit. Since the sizes are stored as floats, my guess would be that it is limited to CGFLOAT_MAX which is so large there is no need to worry about it.

提交回复
热议问题