Permalink
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...
1 parent 34c2656 commit e56e83080806f1f004a8f6f206d070009ec006e0 @roguenet roguenet committed Mar 29, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 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) {

0 comments on commit e56e830

Please sign in to comment.