I need to customise the size of UITextField's
inputView
. My custom view that is assigned to inputView
is already a size of 260x220
but still inputView
appears as 260x768(Portrait
) and 260x1024(Landscap
). I tried changing inputView's
Frame
but still no change. Is there anyway I can modified UITextField's
inputView
Frame
so that it only occupies certain space in bottom screen?
textField.inputView = numPadViewController.view;
[textField.inputView setFrame:CGRectMake(0, 0, 260, 220)];
[EDIT]
From this, I tried following as well and didn't work!
numPadViewController.view.autoresizingMask = UIViewAutoresizingNone;
textField.inputView = numPadViewController.view;