iOS Question Lock the screen to portrait

bromie2008

Member
Licensed User
Hi,
I want to lock my app to portrait orientation only. How to do it? I'm to use Phone library but error comeout "missing library reference"? How to install the Phone library for b4i?
 

tufanv

Expert
Licensed User
Hi,
I want to lock my app to portrait orientation only. How to do it? I'm to use Phone library but error comeout "missing library reference"? How to install the Phone library for b4i?
I dont know what is phone library but in b4i you have to go to #Region Project Attributes and leave the portrait only in those lines:

B4X:
    #iPhoneOrientations: Portrait, LandscapeLeft, LandscapeRight
    #iPadOrientations: Portrait, LandscapeLeft, LandscapeRight, PortraitUpsideDown
 
Upvote 0
Top