I am new to mobile development - I have a LaunchScreen Storyboard and have a logo. How do I center the logo for all screen resolutions? Any link to help me out? Thanks in advance.
Check out the Managing Launch Screens with Storyboards section of our Launch Screens documentation. Specifically look at the sample app attached and you can see how we created a centered image.
If you are still having issues, please let me know.
Even with that link it was not straight forward but I will recap what I did after going through the link. (Just incase if it would help someone else)
Environment: Xamarin on Mac.
To test - just view as different sizes instead of generic and see if it centers.
@DennisAbraham - thank you for this.
I'm stuck on step 5 - adding the 2 constaints.. When I create these (by dragging the right hand edge to the right, and the top edge upwards) - resizing the view in the designer just leaves the image in place - it doesn't get centered. I am really not understanding this constraint milarky so far.. Could you perhaps provide more detail perhaps there is something I am missing?
Aha - nevermind - I found everything I needed to understand about constraints here: https://developer.xamarin.com/guides/ios/user_interface/designer/designer_auto_layout/
It turned out I wasn't actually creating the constraints, as I wasn't dragging the handle to the drop areas!
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies