I am working on the iPhone application. I have four textfields in one of the view. In these four textfield I have one textfield in which there will be use of numberpad keybo
Please please please please please please please please please please please please please do not do this. This is so ridiculously fragile. Consider this:
These are just a couple of the myriad of problems that come with glomming your UI into private view hierarchies.
Here are 2 alternatives instead:
Use the -inputAccessoryView property on every UIResponder (and thus every UIView) to define a UIToolbar with a "Done" button. The inputAccessoryView will be positioned above the keyboard as the keyboard animates in and out.
Add a transparent UIView over your entire UI that captures tap events and causes the keyboard to dismiss