Access UIView width at runtime

前端 未结 4 527
走了就别回头了
走了就别回头了 2021-02-05 01:21

In Swift, how do I get the width (or height) at runtime, of a UIView that\'s created programmatically using auto layout constraints?

I\'ve tried view1.frame.size.

4条回答
提交回复
热议问题