Dillion / iOS-Flip-Transform

Core Animation framework for navigating data by flipping
919 stars 156 forks source link

multiple flipviews in a view cause crash? #4

Closed sxchao closed 12 years ago

sxchao commented 12 years ago

Hello, I recently downloaded your code, and think it's amazing! One thing I noticed was, when I tried to create an additional couple of flipviews, occassionally when I panned for a while, the last pan caused the animation to slow down all of a sudden, and then the app crashed. Have you ever experienced this? Do you know what the potential cause could be? This is on both iPad 5.0 Simulator, as well as iPad 2 running iOS 5.

This appeared to be more pronounced when I added one more flipview to the demo, that was a vertical flip. Again, it wasn't always 100% consistent though. With a couple more horizontal flipviews, it didn't seem to happen as much, but still did happen from time to time.

sxchao commented 12 years ago

FYI, for each flipview, I initialized a new animationdelegate, flipview, and panregion. I reuse the recognizer in the 'panned' method, by assigning an int a value based on which panregion was touched, then doing a switch statement on that int.

rpedroni commented 12 years ago

I didn't try this using panning but with triggered flipviews, I inserted all animation delegates into a NSMutableArray and I am able to animate each flip view independently without any issues.

sxchao commented 12 years ago

Issue seems to have resolved itself during the course of my building out the app.

ghost commented 11 years ago

@sxchao how did you make efficient the multiple flipviews?