2010-11-22 3 views

답변

0

CGRectMake 메서드를 사용해야합니다.

코드 예 :

UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation]; 

if (orientation == UIDeviceOrientation Portrait) { 

banner.frame = CGRectMake (0,0,768,70) 

} 

else { 

banner.frame = CGRectMake (0,0,1024,70) 

}