I may be missing something here but I know how to use the Visual Designer - I have been using B4A for years and I know how to lock a window in Android to either landscape or potrait. But I cannot see how or where to do that in iOS. What am I missing?
Usage. 1) Add pageOrientation module to your project. 2) After each ShowPage call setInterfaceOrientations function. For example, pageOrientations.setInterfaceOrientations (Page2, "LandscapeLeft, LandscapeRight") 3) If you want to ignore invalid orientation (let's say, in Page_Resize event)...
pageOrientation.bas, as it is, works with B4XPage, because finally all is based on UIViewController.
To find native Page is simple (B4XPages.GetNativeParent (Me)). But there is a small problem in which event to insert a call of pageOrientations.setInterfaceOrientations.
A correct place is to insert inside B4XPages.ShowPage, but to do this is necessary to reconstruct a library (not a good idea).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.