I want define a custom keyboard in my App,When I press one TabBar Item in my UITabBarController, then custom keyboard slide up, when I touch the the tabview, I hope the custom keyboard can slide down, But, Because the custom keyboard add in UITabBarController’s view, and tableView add in UIViewController one of UITabBarController’s ViewController, they are not in the same Class, How can I define the Keyboard, and add to which view?
I want to do like this:
When Press tab bar Item keyboard slide up,
https://i.stack.imgur.com/66NDu.png
When touch tableview, keyboard slide down.
Why are you declaring the custom keyboard in the
UITabBarControllerclass ? You can declare it in the view controller that is attached to that particulartabBarItem. If you add it to the that view controller, I am sure you can just make itresignFirstResponderorremoveFromSuperViewand manipulate it as you want.Or you can just create a separate class for your
customKeyboard, and add it along with your other classes. Simply include that class and create objects in other view controllers to manipulate them, and thenreleasethem. This is very easy and it is better programming compared to your approach, as at a later point of time, if you need to make changes or release 2.0 version of your app, it will come in handy and save some development time !