[英]How to align an element in the center in Xamarin iOS for all screen sizes?
I have been trying to keep a logo in the center on the screen for all apple screen sizes but it just doesn't seem to work when the logo is small. 我一直在尝试将徽标放置在所有苹果屏幕尺寸的屏幕中央,但是当徽标较小时,它似乎不起作用。 As I understand , its probably because the left, right, top, bottom margin constrains are absolute and not relative.
据我了解,这可能是因为左,右,上,下边距限制是绝对的而不是相对的。
UPDATE: 更新:
When I change Generic to iPhone 5s in simulator : 当我在模拟器中将通用更改为iPhone 5s时:
] 5
] 5
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.