Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Get rid of some superfluous property setting.

Also, passing that rectangle to the UIAlertView ctor was causing it to do some goofy things with
its text field positioning.
  • Loading branch information...
commit e56e83080806f1f004a8f6f206d070009ec006e0 1 parent 34c2656
@roguenet roguenet authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 ios/src/playn/ios/IOSKeyboard.java
View
4 ios/src/playn/ios/IOSKeyboard.java
@@ -44,15 +44,13 @@ public boolean hasHardwareKeyboard() {
@Override
public void getText(TextType textType, String label, String initVal,
final Callback<String> callback) {
- UIAlertView view = new UIAlertView(new RectangleF(12f, 45f, 260f, 25f));
+ UIAlertView view = new UIAlertView();
view.set_Title(label);
view.AddButton("Cancel");
view.AddButton("OK");
view.set_AlertViewStyle(UIAlertViewStyle.wrap(UIAlertViewStyle.PlainTextInput));
final UITextField field = view.GetTextField(0);
- field.set_UserInteractionEnabled(true);
- field.set_BackgroundColor(UIColor.get_White());
field.set_ReturnKeyType(UIReturnKeyType.wrap(UIReturnKeyType.Done));
switch (textType) {
Please sign in to comment.
Something went wrong with that request. Please try again.