ios - UIView doesn't size itself to superView -
i have uiview
constraints this:
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
Post a Comment