Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a :popover options to present the alert from popover #11

Closed
wants to merge 10 commits into from

Conversation

bmichotte
Copy link
Contributor

Present the alert from a popover, by passing a :popover option and provide the source (either a UIView or a UIBarButtonItem)

rmq.append(UIButton, :my_button).on(:tap) do |sender|
  rmq.app.alert(title: "Actions!", message: "Alert from a Popover.", actions: [:ok, :cancel], popover: sender)
end

The popover stuff is ignored on iPhone.

@GantMan
Copy link
Owner

GantMan commented Jul 27, 2015

very cool! Can't wait to check this out. Does it work on iOS7 and iOS8?

@bmichotte
Copy link
Contributor Author

Yes, I made the modification for both

on :input and :secure. If not specified they default to ""
@GantMan
Copy link
Owner

GantMan commented Jul 29, 2015

busy week, will review soon.

@GantMan
Copy link
Owner

GantMan commented Jul 30, 2015

you should have the merge resolution in your repo as a PR.

@bmichotte bmichotte mentioned this pull request Jul 30, 2015
@bmichotte
Copy link
Contributor Author

I close this one, because of #17

@bmichotte bmichotte closed this Jul 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants