iOS Question DEVICE ORIENTATION

kreativa

Member
Licensed User
Longtime User
Hi,

just a question.
Can i create a app with a portrait orientation with a single page only with landscape?
Thanks
 

Alessandra Pellegri

Active Member
Licensed User
Longtime User
And how is possible to restrict orientation ? I am also interested in.
I see these examples in Objective-C but I cannot convert them in B4I:

B4X:
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;}
 
Upvote 0

Similar Threads

Top