Added fork for iOS 7. ConstrainedToSize is deprecated.

If you are planning not to support iOS 6 then you can remove the else part completely.