iOS Question How ti set pages few Orientations

winjiadh

Active Member
Licensed User
Longtime User
Now I know, I can set the Orientations in Main module use the code
B4X:
#iPhoneOrientations: Portrait, LandscapeLeft, LandscapeRight
    #iPadOrientations: Portrait, LandscapeLeft, LandscapeRight, PortraitUpsideDown
if I set it
B4X:
    #iPhoneOrientations: Portrait, PortraitUpsideDown
    #iPadOrientations: Portrait, PortraitUpsideDown
In a new page, I want set the Orientations to LandscapeLeft or LandscapeRight
how to difine the iPhoneOrientations and iPadOrientations to "LandscapeLeft, LandscapeRight"
I sample set it in the new module with new page's like
B4X:
'Code module
#Region  Project Attributes
    'Orientation possible values: Portrait, LandscapeLeft, LandscapeRight and PortraitUpsideDown
    #iPhoneOrientations: LandscapeRight
    #iPadOrientations: LandscapeRight
#End Region
and error in the logs
"Attribute not supported:iphoneorientations"
 

winjiadh

Active Member
Licensed User
Longtime User
maybe I should change the title to "set iPhoneOrientations attribute in few module"
but I can't do it
need you help
thanks
 
Upvote 0

winjiadh

Active Member
Licensed User
Longtime User
This is a global attribute. It affects all pages.
Have ang ways to do it?
I found some app,the main page is Portrait,and the second page is LandscapeLeft
do you have some solution for it.
 
Upvote 0

winjiadh

Active Member
Licensed User
Longtime User
OK
Frist, Happy new year to Erel, Happy new year to B4X.
Maybe, the next beta, we can do it, in the B4A, I can control the orientation of specific pages, I wish the B4I also can do it.
Best wish to you in 2017.
Thank you.
 
Upvote 0
Top