honcheng / PaperFold-for-iOS

Paper folding animation for iOS
Other
2.7k stars 399 forks source link

AutoresingMask #75

Open benoitvasseur opened 9 years ago

benoitvasseur commented 9 years ago

Hello,

Awesome Job !

But I found some strange behaviors for some AutoresizingMasks, while using PaperFold on iPhone 6.

The line in - (void)setTopFoldContentView:(UIView*)view topViewFoldCount:(int)topViewFoldCount topViewPullFactor:(float)topViewPullFactor has a mask with a flexible height, but has a height of 1. In the same method, think the correct AutoresizingMask for rightFoldView should be UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleBottomMargin

In - (void)setContent:(UIView *)contentView, there is a UIViewAutoresizingFlexibleWidth (2 actually), but no UIViewAutoresizingFlexibleHeight.