Hi all,
I've been working on an xamarion.ios application, using the autolayout technique to create the UI and i've come across a problem. When using the auto layout feature i pin the Height and Width , and set the X and Y position. When trying it out on different devices the objects align correctly to the position and width and height of the objects are pinned to a specific pixel height , however what is the best way to set UI Elemnts via percentage based so it resizes accordingly to the device instead if a specific pixel value?
This is the current problem i have :
Here is a sample of how you have to do, those forms in the form of "T" subject a and drag to the edge of the screen.
Video: Xamarin Evolve 2014: Dynamic Layout in iOS 8 - Adrian Stevens https://youtube.com/watch?v=f3mMGlS-lM4
in the minute 28:00, he explains this.
Answers
You must use constraints, use + and try in phone and ipad...
https://i.ytimg.com/vi/3hwqmS4wzpI/maxresdefault.jpg
@LuisRodriguez92 I've set constraints to values , but nothing seems to resize depending on the device size.
http://imgur.com/a/tHymQ
^^ the two photos have a button at the the top with constraints, the top photo is an iphone 5s and bottom iphone 6. The six fits how i want but you can see the iphone 5s button goes off the screen.
Maybe i'm being stupid but it seems it's just setting them a set pixel space and not taking the device into consideration
Here is a sample of how you have to do, those forms in the form of "T" subject a and drag to the edge of the screen.
Video: Xamarin Evolve 2014: Dynamic Layout in iOS 8 - Adrian Stevens https://youtube.com/watch?v=f3mMGlS-lM4
in the minute 28:00, he explains this.
@LuisRodriguez92,
Your link no longer works.
R/
Prescott ....