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;


inputView


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

inputAccessoryView

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 : https://github.com/karthikprabhuA/CustomKeyboardInputView-Sample
   

64 comments:


  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.

    ReplyDelete
  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

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

    ReplyDelete
  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 – www.hvantagetechnologies.com

    ReplyDelete
  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: www.yberryinfosystem.com

    ReplyDelete
  6. Very nice post here and thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.
    IOS Training in Chennai

    ReplyDelete
  7. Nice it seems to be good post... It will get readers engagement on the article since readers engagement plays an vital role in every blog.i am expecting more updated posts from your hands.
    iOS App Development Company
    iOS App Development Company

    ReplyDelete
  8. nemco.com.au
    App Developer | Sydney App Developers | Mobile App Development
    NEMCO is a leading mobile app development firm in Sydney which helps owners to increase their business visibility. Hire app developer now! Call 0488863626
    mobile app development sydney | mobile app development melbourne

    ReplyDelete
  9. Excellent tips. Really useful stuff .Never had an idea about this, will look for more of such informative posts from your side... Good job...Keep it up
    android app development sydney | android app developer sydney

    ReplyDelete
  10. I read that Post and got it fine and informative. Please share more like that...Great Article it its really informative and innovative keep here:
    http://mobile-development-challenge.blogspot.in/2018/02/business-mobile-application-development.html

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete
  12. Wow! That's really great information guys.I know lot of new things here. Really great contribution.Thank you ...

    jira training videos

    ReplyDelete
  13. This article is very much helpful and i hope this will be an useful information for the needed one.Keep on updating these kinds of informative things...
    Android App Development in Lucknow
    Mac App Development

    ReplyDelete
  14. https://sslotus1.blogspot.com

    ReplyDelete
  15. This article is helpful and informative,useful tips too​Mobile Application Development!

    ReplyDelete
  16. nice article! very useful information. Keep sharing this kind of valuable blogs regularly. –xtensible software tachnologies click here

    ReplyDelete
  17. The information you shared was useful. Thank you for taking the time to organize it. Mitroz Technologies is a professional software development firm in Pune India. We furnish our services and best solutions to our customers. We deliver great websites and mobile apps of every size to our clients. If you require any further information related to software, web or mobile app development, feel free to contact us at +91 7066734606 or drop an email atinfo@mitroztech.com. Please go through our website www.mitroztech.com for more information.

    ReplyDelete
  18. I am really enjoying reading your well written articles.
    It looks like you spend a lot of effort and time on your blog.
    I have bookmarked it and I am looking forward to reading new articles. Keep up the good work..
    Java Training in Bangalore
    Best Java Training Institutes in Bangalore
    Java Course in Bangalore
    Java Training Institutes in Bangalore
    Java Institutes in Bangalore
    Java Classes in Bangalore
    hadoop training in bangalore
    big data training in bangalore

    ReplyDelete
  19. I am really excited while reading your blog. These free self help blogs are so greatly appreciated.

    Vicky from Devolve (Mobile App Development Company in Calgary)

    ReplyDelete
  20. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work! www.nbnminds.com

    ReplyDelete
  21. Thanks for a wonderful share. Your article has proved your hard work and experience you have got in this field. Brilliant.
    HTML5 Mobile App Development
    Creating a Custom Mobile App for your Business

    ReplyDelete
  22. Hello
    Nice post and very useful for developers. For mobile app development related visit:
    iPhone App Development India
    Software Company in Lucknow

    ReplyDelete
  23. Get the best apps development companies in the UK .They are specialized in the design, development, integration, deployment, testing, and maintenance of Apps for iOS, Android, Windows, IOT platforms.

    ReplyDelete
  24. I am expecting more interesting topics from you. And this was nice content and definitely it will be useful for many people.
    hybrid mobile application development

    ReplyDelete
  25. Nice post, very useful blogs with very useful information, thank you for sharing this post android app development India

    ReplyDelete
  26. Thank you for sharing this information. iOS App Development Company In UK offers best services in iOS app development with 24*7 customer support.

    ReplyDelete
  27. Excellent article,We provide many many imformation about Dubrin labs limited is one of the proud members of Bangladesh Association of Software and Information Services (BASIS). We develop enterprise grade software and IT solution or organization all around the globe. We build android, iOS, Cross platform, and web application. Durbin labs limited has a reputation as one of the innovative firm for software development in Bangladesh.
    More info you can vist Android App development
    Thanks for sharing such beautiful information with us

    ReplyDelete
  28. If you don’t want to take a chance with your tie and money then hiring a professional agency for the iPhone app development India is the best alternatives. These professional agencies ensure that the clients get the value for money.

    ReplyDelete
  29. Hey this one is a very nice article and its is going to help the audience a lot and will help them with the knowledge of IOS application development in Greater Noida online and will also enlighten them with the knowledge of the same. If you want one of the Best IOS application development in Greater Noida online then Softgains is the place you should go for

    ReplyDelete
  30. Hey this one is a very nice article and its is going to help the audience a lot and will help them with the knowledge of IOS application development online and will also enlighten them with the knowledge of the same. If you want one of the Best IOS application development online then Softgains is the place you should go for

    ReplyDelete
  31. Hey this one is a very nice article and its is going to help the audience a lot and will help them with the knowledge of Android application development online and will also enlighten them with the knowledge of the same. If you want one of the Best Android application development online then Softgains is the place you should go for

    ReplyDelete
  32. Hey this one is a very nice article and its is going to help the audience a lot and will help them with the knowledge of IOS application development and will also enlighten them with the knowledge of the same. If you want one of the Best IOS application development services online then Softgains is the place you should go for

    ReplyDelete
  33. Hey this one is a very nice article and its is going to help the audience a lot and will help them with the knowledge of Android application development services and will also enlighten them with the knowledge of the same. If you want one of the Best Android application development services online in Greater Noida then Softgains is the place you should go for

    ReplyDelete
  34. This comment has been removed by the author.

    ReplyDelete
  35. Thanks for sharing. It is nice information. Mobile app development

    ReplyDelete
  36. Mobile apps are playing an important role day to day life and apart from these the rise of on-demand cross-platform app development services it allows creating applications that stand out in the market by applying available resources efficiently .

    ReplyDelete
  37. Thank you for the information. Our digital marketing and software services are aimed at carving a niche space in digital media with result-oriented strategies and to cater to brand and businesses to improve their presence across various social media platforms.Visit The Best Digital Marketing Agency in Kochi

    ReplyDelete
  38. nice and needed information which i want
    grandwebstores
    Thankyou :)

    ReplyDelete
  39. Awesome! I have read many other articles on the same topic, your article convinced me! I hope you continue to have high-quality articles like this to share with everyone!
    Tik-Tok Clone APP

    ReplyDelete
  40. Thank you for sharing such a meaningful article. It is very informative for Mobile Application Development .

    ReplyDelete
  41. software testing company in India
    software testing company in Hyderabad
    Thanks for sharing such a Nice and informative article with us.
    please keep sharing.

    ReplyDelete
  42. Well explained…great work…thank you so much for sharing such a valuable information. Looking for the best cross-platform app development services in Hyderabad Contact Cyanous software solutions now.

    Best cross-platform app development services in Hyderabad
    Best software & web development company in Hyderabad

    ReplyDelete
  43. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. In this blog post, you have delved into the benefits of using storyboards for designing user interfaces, managing navigation flows, and creating dynamic transitions between different screens. It's a useful resource for iOS developers who want to leverage the power of storyboards to streamline their app development process and create visually appealing and user-friendly interfaces. Thanks for sharing this great article, You can also contact us here if you are looking forward to hire a hybrid mobile app developer from India, and we will be happy to help you.

      Delete