viernes, 22 de octubre de 2010

Orientacion de Pantalla.

-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {

if((self.interfaceOrientation == UIDeviceOrientationLandscapeLeft) ||     (self.interfaceOrientation == UIDeviceOrientationLandscapeRight)){
[currentPage.view setFrame:CGRectMake(0, 0, 1024, 780)];
} else if((self.interfaceOrientation == UIDeviceOrientationPortrait) || (self.interfaceOrientation == UIDeviceOrientationPortraitUpsideDown)){
[currentPage.view setFrame:CGRectMake(0, 0, 780, 1024)];
}
}

No hay comentarios:

Publicar un comentario

468x60