Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这个代码:
CGRect _frame = container.frame; CGFloat height = _frame.size.height
这段代码给了我视图的高度,但是以什么单位?有没有办法将其转换为像素或点,以便我可以更好地可视化它?
我在文档中读到 CGSize 是一个向量而不是一个物理值,但这对我理解它没有多大帮助。
谢谢!
CGSize 文档