rnystrom / RNGridMenu

A grid menu with elastic layout, depth of field, and realistic animation.
MIT License
1.28k stars 192 forks source link

Make proper screenshots for underlying scrollable views #16

Closed xzenon closed 11 years ago

xzenon commented 11 years ago

When showing menu above UITableView (or other scrollable view) screenshot is rendered incorrectly if table is scrolled down from the top. rngridmenuscreenshot

For such case we need to make screenshot based on current table content offset. Added such ability.

rnystrom commented 11 years ago

Would -isMemberOfClass: be better to cover subclasses of UIScrollView?

xzenon commented 11 years ago

-isMemberOfClass: returns YES if the receiver is an instance of the specified class only while -isKindOfClass: returns YES if the receiver is an instance of the specified class or an instance of any class that inherits from the specified class.

I believe -isKindOfClass: is exactily what we need to use here.

rnystrom commented 11 years ago

Thank you :)

xzenon commented 11 years ago

Thank you for a great grid menu! :)