Today we have to talk about with xib custom when trying on different adaptive constraint on the size of the phone, in fact, we just need to give us
NSLayoutConstraint
write a classified able to complete this looks very complicated things.
I uploaded the code to github above, you can download the code directly into your project which can then pleasant to use.
Specific use steps:
1, first find our view
2, then pay attention to see us find the constraints set
3, find the third step of selecting one of the
4, pay attention to where
Adapter Screen
we want this elected
ON
5, everything somehow But be careful here (all of this is bound to be all
on
, all), which is more annoying that we must pay attention.
Code address
https://github.com/ryanranya/DisConstraint
like friends want to help point stars, thanks! ! !