Project

rmq_alerts

0.0
No commit activity in last 3 years
No release in over 3 years
rmq_alerts is an RMQ plugin that makes it very easy to create alert messages in iOS
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

image

rmq_alerts

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.

Installation

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:

gem 'rmq_alerts'

Usage

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.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request