Reputation: 452
I want to display a cursor when the UITextField
is not property enabled. In my application i have put buttons for the keyboard (A,B,C...). But here i want to display a cursor when I click any alphabets button from a custom keyboard without opening the default iphone keyboard.
Upvotes: 3
Views: 871
Reputation: 5977
Seems you are looking for a UITextField
with a custom keyboard and show cursor when you press any aphabet. If that is correct......
First Create the class CustomKeyboard : UIView
and add buttons/layout the view.
Second for your textfield just set the inputView property to an instance of the class CustomKeyboard textField.inputView = customKeyboard
;.
Third You'll need to set the inputView
property to be readwrite
as well @property (readwrite, retain) UIView *inputView;
By setting the inputView property, the standard iPhone keyboards will not appear when the textfield becomes first responder.
This way you will get what you are looking for....
Upvotes: 1
Reputation: 40211
You can implement Custom Views for Data Input on iOS. Basically you can define a custom keyboard with your own characters and it will wirk the same as the default keyboards.
Upvotes: 1