D
Deleted member 103
Guest
Hi,
I want the iPhone from 5 inches (iPhone 6+) the same orientation as an iPad, how can I make it?
With this code does not go.
I want the iPhone from 5 inches (iPhone 6+) the same orientation as an iPad, how can I make it?
With this code does not go.
B4X:
If IsPadDevice Then
#iPadOrientations: LandscapeLeft, LandscapeRight
#iPhoneOrientations: LandscapeLeft, LandscapeRight
Page1.RootPanel.LoadLayout("frmMainIpad")
Else
#iPhoneOrientations: Portrait
Page1.RootPanel.LoadLayout("frmMainIphone")
End If
B4X:
Public Sub IsPadDevice As Boolean
If Main.App.iPadDevice Or GetDeviceLayoutValues.DeviceApproximateScreenSize > 5 Then
Return True
Else
Return False
End If
End Sub