2010-11-22 8 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) 

} 
関連する問題