2010-11-22 5 views

Répondre

0

Vous devez utiliser la méthode CGRectMake.

Code ex:

UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation]; 

if (orientation == UIDeviceOrientation Portrait) { 

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

} 

else { 

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

} 
Questions connexes