honcheng / PaperFold-for-iOS

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

Swiping horizontally on top and bottom folds turns views gray immediately #47

Open DJBen opened 11 years ago

DJBen commented 11 years ago

iOS Simulator Screen shot Jan 18 2013 3 21 12 PM

As screenshot attached. Once you swipe on top or bottom fold in horizontal direction, the view will strangely turn gray.

hengchu commented 11 years ago

first get a reference to the gesture recognizer used on the paperview in PaperFoldView.m

Then in finishForState, remove the panGesture if state is top/bottom unfolded. and add the panGesture back when the state is default. This has worked for me.

hengchu commented 11 years ago

or you can checkout my forked code under the fixtopview branch:

https://github.com/hengchu/PaperFold-for-iOS/tree/fixtopview

DJBen commented 11 years ago

Thanks!

hugoeue commented 10 years ago

Thanks that worked for me...