반응형
frame: 해당 객체가 붙어있는 superView 기준
bounds: 해당 객체 자신 기준
파랑 - 윈도우(슈퍼 뷰)
주황 - UIImageView
연두 - UIImage나 그 외 어떤 오브젝트
종속 관계는 파랑 ∋ 주황 ∋ 연두
origin: 좌표
size: 크기
*.frame.origin/*.frame.size는 슈퍼 뷰
*.bounds.origin/*.bounds.size는 해당 뷰
setFrame: / setBounds: 메서드 이용 시 염두하고 사용해야 한다.
frame/bounds 만들기
CGRectMake(*.origin.x, *.origin.y, *.size.width, *.size.height)
'iOS > References' 카테고리의 다른 글
APNS Push Notification (0) | 2011.07.04 |
---|---|
Content-type (0) | 2011.06.28 |