rubymotion-community / BubbleWrap

Cocoa wrappers and helpers for RubyMotion (Ruby for iOS and OS X) - Making Cocoa APIs more Ruby like, one API at a time. Fork away and send your pull requests
Other
1.18k stars 208 forks source link

Adds placeholder ability for plain text input #438

Closed markrickert closed 9 years ago

markrickert commented 9 years ago

Pass :placeholder in an alert view options hash for a plain text input alert to have a placeholder on the text field.

GantMan commented 9 years ago

i have no idea what this is :(

markrickert commented 9 years ago
options = {
  title: 'My Title',
  message: "Some message"
}
BW::UIAlertView.plain_text_input(options).show

screen shot 2014-12-09 at 12 34 26 pm

options = {
  title: 'My Title',
  message: "Some message",
  placeholder: "Type something here..."
}
BW::UIAlertView.plain_text_input(options).show

screen shot 2014-12-09 at 12 32 48 pm

GantMan commented 9 years ago

:smile_cat: very cool.