portrait
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{return(toInterfaceOrientation ==UIInterfaceOrientationPortrait);}
-(BOOL)shouldAutorotate {return YES;}-(NSUInteger)supportedInterfaceOrientations {returnUIInterfaceOrientationMaskPortrait;}
landscape
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{[image_signature setImage:[self resizeImage:image_signature.image]];return(toInterfaceOrientation ==UIInterfaceOrientationLandscapeLeft);}
-(BOOL)shouldAutorotate {return YES;}
-(NSUInteger)supportedInterfaceOrientations {[image_signature setImage:[self resizeImage:image_signature.image]];returnUIInterfaceOrientationMaskLandscapeLeft;}