ios - Getting the minimum size of a UIView based on its constraints -



ios - Getting the minimum size of a UIView based on its constraints -

i have created custom nib , added view hierarchy. view separates subviews using constraint greater or equal to, in other words, giving view minimum size work with.

is possible minimum size of uiview constraints system?

uiview has method systemlayoutsizefittingsize: homecoming smallest size (or largest size) view.

cgsize smallestviewsize = [view systemlayoutsizefittingsize: uilayoutfittingcompressedsize];

the uiview method intrinsiccontentsize returns desired size. size may in middle of 2 sizes returned before.

prior ios6, phone call sizethatfits: fitting size may smaller size passed in or default bounds of receiver.

ios objective-c uiview nslayoutconstraint

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -