iOS Question Picker position problem ?

ilan

Expert
Licensed User
Longtime User
hi

on my latest app "Safe Area" i am using 3 pickers like a lock to unlock the main screen
everything works great but if i am using my app on my ipad the picker position wont change like other views position and like this it wont be in the right location i need it to be

what can i do to ensure that the picker will be at the same location on the screen like it is on my iphone4

i am using this method to resize all views to the different screen size: https://www.b4x.com/android/forum/threads/resize-all-views-to-any-screen-size.46600/
 

ilan

Expert
Licensed User
Longtime User
Why don't you use anchors / designer script to resize your layout?

The problem with picker is that its actual size is constant. Even if you change its size it will look the same.

will it work with the designer script??
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
what i can do is i will calculate the y% of the picker.top in my iphone and put the same y% for any other device, i think it will work like this...
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
You might set HorizontalCenter and VerticalCenter in the Designer Scripts

thanx i will try that out, i was yesterday very tired and my brain doesnot work very well after 03:00am, so i didnot think about the designer script...
 
Upvote 0
Top