iOS Question [SOLVED] How to get a inputView on TextField

Star-Dust

Expert
Licensed User
Longtime User
I need to turn this code into b4i.
can anyone help me?

Objective-C:
UIView* dummyView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]; 
myTextField.inputView = dummyView;
 
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
Solved by myself, every now and then I remember that I am a developer too

B4X:
no.RunMethod ("setKey:", Array (View))

#If OBJC
- (void) setKey : (UITextField *) textField
    {
    UIView* dummyView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]; 
    textField.inputView = dummyView;
}
#End If
 
Last edited:
Upvote 0
Top