Thursday, 27 September 2012

How to Custom UIKeyBoard for UITextField

                          Custom UIKeyboard 

   UITextField contains two properties

       // set while first responder, will not take effect until reloadInputViews is called.
@property (readwrite, retain) UIView *inputView;             
@property (readwrite, retain) UIView *inputAccessoryView;


Can use our custom UIView instead of system keyboard by using inputView property, create your own  UIView and assign to the inputView property.
              yourtxtfield.inputView = yourCustomKeyboardUIView;  
can switch our custom keyboard and  system keyboard by using  reloadInputViews (Updates the custom input and accessory views when the object is the first responder)

  change custom keyboard to system keyboard

            yourtxtfield.inputView = nil;
            [yourtxtfield  reloadInputViews];

 change system keyboard to custom keyboard
            youttxtfield.inputView = yourCustomKeyboardUIView;
            [self.kbtxtfield reloadInputViews];

replaced system keyboard by our custom UIView


Can add a toolbar like view on top of system keyboard by using inputAccessoryView property, create your own UIView and assign to the property.

              yourtxtfield.inputAccessoryView = yourCustomtoolbarlikeUIView;
added toolbar like view on top of system keyboard using inputAccessoryView

This sample describes how to add a toolbar(input AccessoryView) on top of system keyboard and how to add a custom keyboard by replacing system UIKeyboard. you can also switch between custom view and system keyboard ,this sample used xib for custom keyboardview and inputAccessoryView, also describes that how to use Custom UIView and  XIB UIView.

download source code :


  1. nice blogs.
    Friend chatMake new friend’s without revealing yourself. Dial 543216 at Rs 2/min and monthly subscription of Rs 30/ 30 days.

  2. I’m really amazed with your posting skills as well as with the layout on your blog site. Is this a

    paid style or did you modify it yourself? Either way keep up the pleasant quality writing, it is

    rare to see a great site such as this one these days.
    ios application development

  3. Thanks for sharing this useful info. Keep updating same way.IOS Applications Development in Bangalore.

  4. Hi, I read your blog this is very informative. Thanks for share this blog. You can find dedicated Web designers, Mobile Application Developers, SEO and marketing specialists will tailor make the solution you want for your business. Know more about click here –

  5. Thanks for the post. You have explained the topic in very simple and step by step. At Yberry Infosystem a Mobile application development company, we have taken up this challenge of delivering the app that is ideal matched for you. Visit:

  6. Great Work. This post is worth everyone’s attention. web design company in chennai


  7. Thanks for posting useful information.You have provided an nice article, Thank you very much for this one. And i hope this will be useful for many people.. and i am waiting for your next post keep on updating these kinds of knowledgeable things...Really it was an awesome article...very interesting to read..
    please sharing like this information......
    Android training in chennai
    Ios training in chennai