ios - Difference between UIView.layoutMargins and AlignmentRect -
i'm figuring out (again) how set margin custom uiview instance. recall had set alignmentrect via alignmentrectinsets method. did not worked auto layout. searching on google found there property called layoutmargins.
so question layoutmargins , alignmentrect ? affect each other? totally different things ?
layoutmargins
determines how things inside of view positioned auto layout. used keep objects specific distance away edges of view.
alignmentrectinsets
telling objects outside of custom view how should align it. example, might have view wavy or angled top. aligning other objects top of view may not quite right, might set inset on top alignment compensate.
you care layoutmargins
. i've never seen use alignmentrectinsets
.
Comments
Post a Comment