I am used to having an Android background where I do:
android_layout_width="match_parent" or android_layout_height="match_parent"
How is this behavior done on iOS, using xib?
1) Set frame of child view matching parent's view bounds.
2) Enable autoresizing mask like in screenshot.
You have to create two constraints from the child to it's parent view:
It's also possible to define a margin (select the created constraint within the size inspector)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With