UIView subclass that implements pullable behaviour similar to the Notification Center in iOS 5.
Original Objective-C code by Fabio Rodella / Crocodella.
This is a direct translation for RubyMotion. All credit for the code goes to Crocodella.
A valid RubyMotion license, of course.
git clone https://github.com/otagi/PullableView.git
- Build and run the sample app with the usual
rake
command. - Play with it.
- Copy the
PullableView
class into your project.
There are a few cosmetic changes in this Ruby version:
- The
PullableView
's delegate pattern has been replaced by block-based callbacks. - The start/stop button in the sample app has been removed. The views are pullable by default.