'frame'에 해당되는 글 1건

  1. 2012.02.10 [XCode] bounds와 fame의 차이

bounds :  영역의 사이즈를 설정
frame : 사이즈와 시작점을 동시에 정해줌.


[적용예]

view1.bounds = CGRectMake(0,0,100,100);
view1.center = CGPointMake(75,75);

혹은

view1.frame = CGRectMake(50,50,100,100);



from 맥부기 "coolmarklee님'
Posted by 꿈을펼쳐라
,