i created a UITextField and a custom View. after that i added this custom view as "inputView" to my UITextField.
amountKeyboardViewController *amountKeyboard = [[amountKeyboardViewController alloc] initWithNibName:@"amountKeyboardViewController" bundle:nil];
amountTextField.inputView = amountKeyboard.view;
[amountTextField becomeFirstResponder];
this works quite fine. but can i fill my "amountTextField" with the input clicked in my custom View (UIButtons)?
thanks for some hints !
You mean that if you press 1 then '1' should shown in textfield.
after that if you press 2 then it will show '12'.
Do you want like this?
You have to write IBaction for all buttons eg.
like that you have to write IBaction for all your buttons
in your amountTextField controller you need to write the following code in .h file
create property of your textfield
Now in .m file write the following
write following statement where you create object of amountKeyboardViewController
Now in amountKeyboardViewController controller write the following code
then create object of this class
then create property of
Now on click of button