且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

iOS8大小类和弹出视图

更新时间:2023-02-03 09:56:23

经过一段时间后,便士一直在检查Any / Any Size类的限制....这些与我在日志中吐出的错误约束相匹配。所以我在A / A尺寸类中设计了Popover视图并且工作正常!

After some time the penny dropped to check the Any/Any Size class constraints.... These were matching the erronous constraints that I was spitting out in the logs. So I designed the Popover view in the A/A size class and it worked fine!

这对某些人来说似乎很明显,但我认为这是因为我的应用程序是R / R我的Popover约束应该在R / R中。但是,如果您使用VC作为Popover,则需要在A / A Size Class中进行约束。

This might seem obvious to some but I thought that because my App was R/R that my Popover constraints should be in R/R. However it looks like that if you are using a VC as a Popover that the constraints need to be made in the A/A Size Class.