ios - UIView doesn't size itself to superView -


i have uiview constraints this:

enter image description here

all vertical , horizontal spaces set 0.

then in viewdidload added view subview of original uiview. here looks like:

self.innerview  = [[uiview all] initwithframe:self.myview.frame]; [self.myview addsubview:self.innerview]; 

when run app, innerview doesn't size myview. can fix that?

if adding view code, need add constraints innerview code well. see apple's documentation on how that. need innerview view have leading , trailing spaces parent myview (both horizontally , vertically).


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -