IOS 7 autoresizingmask not working properly

I use something like this in my code

Btn.autoresizingMask = UIViewAutoresizingFlexibleTopMargin + UIViewAutoresizingFlexibleLeftMargin; 

It works great for all versions of iOS except iOS 7.

UIViewAutoresizingFlexibleTopMargin also works, but UIViewAutoresizingFlexibleLeftMargin does not work.

If someone decides this, please help.

Thanks.

+4
source share
1 answer

Have you autoresizesSubviews add autoresizesSubviews in on YES ? and add UIViewAutoresizingFlexibleWidth and UIViewAutoresizingFlexibleHeight and check if resizing is happening.

+4
source

All Articles