I am working with xamarin.forms and using constraints to center and scale a logo in my splash screen. The problem is: The constraint that I define to Iphone 5s, 6, 6s etc.. doesn't work to the Ipad, and when I define it to the Ipad, it doesn't work to Iphones... Does someone know how to solve that?
Iphones contraint (in right positions etc):
Ipads constraint (it's is wrong here):
If you just want to center the logo in the screen, I am not sure why you would go with different Size classes for iPhone and Tablet.
To Center the logo, I would recommend 4 constraint to be set for the Logo.
-----or-----
Set, UIImageView mode to Aspect Fit.
Hope it helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.