Is it possible to change the default InputView in MonoTouch?

Posted by Pwninstein on Stack Overflow See other posts from Stack Overflow or by Pwninstein
Published on 2011-01-07T16:18:23Z Indexed on 2011/01/07 16:53 UTC
Read the original article Hit count: 179

Filed under:
|
|

I would like to display a different view than the standard keyboard (a picker control, or a date picker, for example) when a text field becomes first responder (i.e. gets focus). This would be really nice, because currently I'm pushing a custom view which contains my picker control onto the navigation stack where the user chooses an option, and then hits an OK or Cancel button.

According to the documentation for UITextField.InputView:

Assigning a custom view to this property causes that view to be presented instead.

But, It's read only!!!

Is there a workaround for this? Do I need to implement a custom UITextField control and somehow override the InputView property? Do I need to call some kind of native function? I'd really love not to have to do either of those things... but if I have to, so be it. Thanks in advance!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about monotouch