iOS Question Is there a Variants tutorial

Discussion in 'iOS Questions' started by rfresh, Jun 16, 2019.

  1. rfresh

    rfresh Well-Known Member Licensed User

    I don't fully understand how Variants work. I have two in my designer: iphone and iPad. I have to choose one, say iPad and compile my app. What happens if I try to run it on my iPhone and I had not selected the iPhone variant?

    Thank you...
     
  2. mangojack

    mangojack Well-Known Member Licensed User

  3. Erel

    Erel Administrator Staff Member Licensed User

  4. rfresh

    rfresh Well-Known Member Licensed User

    Thanks.

    I have two variants (iPhone and iPad). Is there a way to get the device screen height in the layout script (to determine iPhone or iPad) so I can make some minor button position tweaks using an IF statement?

    I read that Activitysize is diagonal size in inches but I couldn't find out what that value is on an iPad/iPhone as it's always given in screen height and width.
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    Code:
    'Example
    If 100%x > 800 Then
     Button1.Left = 
    30
    End If
     
    techknight likes this.
  6. Andrew (Digitwell)

    Andrew (Digitwell) Active Member Licensed User

    there is a readonly boolean property on the Application called "iPadDevice".
     
Loading...
  1. 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.
    Dismiss Notice