How to use NSLayoutConstraint in iOS 6?

后端 未结 1 1298
-上瘾入骨i
-上瘾入骨i 2021-01-24 08:12

My app should support both iPhone resolutions (5 and older) using iOS 5 and iOS 6. When I use autolayouts in IB, on iOS 5 app crashes like this: link

So, I am trying to

1条回答
  •  别那么骄傲
    2021-01-24 08:51

    The AutoLayout feature is only compatible with iOS6 and is not supported in iOS5. Thus the crash

    If you intend your app to be compatible with iOS5, you can't use AutoLayout in your XIB files.

    You can only use older methods, like the AutoResizingMask for example (which is often sufficient for most cases anyway).

    0 讨论(0)
提交回复
热议问题