ultragtx / GSBookShelf

An iBooks-styled book shelf for iOS (Animation of drag & drop, insert, remove...)
Other
426 stars 90 forks source link

Rotation issue part 1 and part 2 #12

Open ultragtx opened 11 years ago

ultragtx commented 11 years ago

Assume there are 100 books

Vertical: 3 books a row, 34 rows total Landscape: 4 books a row, 25 rows total

Build and run the app in the simulator, turn on slow-motion animation.

Part 1

Issue: When in vertical mode, scroll to the bottom, then rotate to landscape mode, during the slow animation, you won't see any shelf, just the background, when the rotate animation end, the view will scroll quickly from row 34 to row 25. This is not the visual effect we want.

 2013-03-02 3 12 23  2013-03-02 3 13 28

Desired: Before the rotate animation, jump to row 25 without animation, then the visual effect will be better.

Reality: No matter where I try to set the contentOffset without animation and/or disable UIView animation, it will still animate during the rotation.

Part 2 (This has been fixed)

Issue: Do the same thing in part 1, and then rotate back to vertical, you will see in the bottom shelf, the the right side board of the shelf behave differently as other shelfs

Reason:
The reused shelf used to be a vertical shelf, so the side board's position will not change from the landscape mode to the vertical mode.

Reality: Tried to reset the frame of all reused shelf and relayout, but still behave like before.

 2013-03-02 3 12 36