본문 바로가기

IOS 개발

[iOS] struct CGRect

 

 

요약
사각형의 위치와 치수를 포함하는 구조입니다.

Summary

A structure that contains the location and dimensions of a rectangle.

 

 

Declaration

struct CGRect

 

 

 

토론
기본 코어 그래픽 좌표 공간에서 원점은 사각형의 왼쪽 하단에 있으며 사각형은 오른쪽 상단으로 확장됩니다. 컨텍스트에 뒤집힌 좌표 공간이있는 경우 (종종 iOS의 경우) 원점이 왼쪽 상단 모서리에 있고 사각형은 오른쪽 하단 모서리로 확장됩니다.

Discussion

In the default Core Graphics coordinate space, the origin is located in the lower-left corner of the rectangle and the rectangle extends towards the upper-right corner. If the context has a flipped-coordinate space—often the case on iOS—the origin is in the upper-left corner and the rectangle extends towards the lower-right corner.

 

 

 

 

 

 [참조  : Open in Developer Documentation ]

'IOS 개발' 카테고리의 다른 글

[iOS] struct CGRect  (0) 2020.03.23
[iOS] awakeFromNib()  (0) 2020.03.23
[iOS] Introducing JSON  (0) 2020.02.24
[iOS] init()  (0) 2020.02.24
Using API Functionality  (0) 2020.02.21