iOS: Automatically resizing subviews
iOS: Automatically resizing subviews
- Subject: iOS: Automatically resizing subviews
- From: Development <email@hidden>
- Date: Sun, 05 Jun 2011 23:51:26 -0700
I thought I understood how auto resizing worked but I don't
According to the docs if I want to automatically resize all the subviews of a view I need to set the View up with
[self setAutoresizesSubviews:YES];
self.contentMode =UIViewContentModeScaleToFill;
No?
I tried this but when I resize the view it's subview remains centered and the same size.
Inside of all the subviews I have done the following:
[self setAutoresizingMask:UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight];
Is there a step I'm missing?
The problem is that the main view's subview rotates. And the whole thing obviously can be resized.
If I manually resize the rotated subview I'm doing it wrong because it looses it's shape completely
I was hoping I could use autoresizing to solve this issue but I can't get it to work._______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden