Can't keep a real layout

Hi, i'm currently trying to test an app on a real device but when i put the app on this device all the layout is wrong.
Let me explain a little better:
i developed and designed the app within the emulator, and as visual i choose an iPhone x( because i though was awful to design and get that to work with the notch), and on the simulator everything is just fine, but, when i put everything on a real device( this device is an iPhone 8, i think is this the issue) everything is messed up, buttons doesn't works, labels and images all messed up, but the load of the code is fine, how can i develop the same app for more than one model? I need to do something with the layout or i need to cheat and do a different release for every device, i'm currently using the storyboard cause i feel better and i'm still a noob in this field(develop) so nothing in XAML

Best Answer

  • something123something123 ✭✭
    edited January 11 Accepted Answer

    i think i solved it, is basically that i need to create a different app/release for every display density, in case of apple 8+\X\8\SE\4s, is the same thing that android developer do, they publish a different app for different display density, if someone stuck as me want to study this thing better just search:
    Multiple APK Android Developer

    here is where i find the idea of using this (let me call this way) "Theory" :
    https://stackoverflow.com/a/32609892

    but if possible i 'd like to know if there is a better way to do this

Answers

  • something123something123 Member ✭✭
    edited January 11 Accepted Answer

    i think i solved it, is basically that i need to create a different app/release for every display density, in case of apple 8+\X\8\SE\4s, is the same thing that android developer do, they publish a different app for different display density, if someone stuck as me want to study this thing better just search:
    Multiple APK Android Developer

    here is where i find the idea of using this (let me call this way) "Theory" :
    https://stackoverflow.com/a/32609892

    but if possible i 'd like to know if there is a better way to do this

  • andnesandnes USMember ✭✭✭

    Are you using Auto Layout? If not, you should read up on how to use that. It will help your app be responsive to all screen sizes: https://docs.microsoft.com/en-us/xamarin/ios/user-interface/designer/designer-auto-layout

  • something123something123 Member ✭✭

    yeah, i'm using auto layout and constraint, but is all messed up when i try to change in the storyboard view or if i try in a different device

Sign In or Register to comment.