rmq_alerts is an RMQ plugin that makes it very easy to create alert messages in iOS.
rmq_alerts intends to stay very light and provide specific functionality (to display alerts easily). This is a very early version and I will be adding more related functionality hopefully in the near future.
On my to-do list:
- Action sheets
That's it so far. You are more than welcome to submit PRs and suggest features in the issues section.
Requires RMQ 0.9.0 or later, and iOS 7 or later
To install rmq_alerts, write the following in your terminal:
gem install rmq_alerts
Or you can just include it in your RubyMotion app's Gemfile:
The plugin adds an 'alert' method to RMQ. It has two required arguments (title and message).
rmq.alert('Title goes here', 'Message goes here')
rmq.alert('Ops!', 'No connectivity!', cancel_button = 'Fine')
rmq.alert('title', 'message', cancel_button='Yes', other_buttons=['No'], delegate=self)
The full method looks like this:
rmq.alert('title', 'message', cancel_button='Yes', other_buttons=['No'], delegate=self, view_style=UIAlertViewStyleDefault)
It returns an rmq instance of the alert view.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request