Forum Archive

How to build a Sharehseet UI which runs well on iPad and iPhone

halloleooo

I have my well-working Image Joiner share extension developed with a *.pyui file. This extension works well on my iPad I use for developing the UI:

However when running on my iPhone it looks like this:

Not too bad, but if I want to have a design which shows the percent" SegementControl next to its "Border Width" Label on iPad and iPhone_, how can I design the .pyui file for it?

cvp

@halloleooo you could, before presenting the view, recompute the frames of the relative objects (labels, segments) in function of the dimensions of the device (ui.get_screen_size())

halloleooo

@cvp Thanks. Makes sense. I was hoping there is a way via the UI builder, but of course, I can adjust things later in code.

cvp

@halloleooo said:

there is a way via the UI builder

I don't think so but I never use the designer, thus perhaps it is better to have another advice