My question is that,
11>I have loaded 10 UITextfileds through code
2>when i click on UITextfield,requirement is that ,it should hide all the textfields below it.and keyboard moves up
3>when 2> happens at that time,user either clicks on return button or not
It should be work for all 10 textfilds in both case back and forth
4>when 2> happens either user switch from portrait to landscape mode or portrait to Landscape mode without or with pressing return button
in all thess four cases ,keyboard should hide all the UItextfield below textfield which is clicked
Have you read the part of the documentation of UITextField under “Managing the Keyboard” and “Keyboard Notifications”? If not, read that.
If so, consider using the notification (have your controller register for it):
“UIKeyboardWillShowNotification”
Once registered, use the method called by this notification to hide and move the desired text fields. Of course, you have to hide the keyboard so you can work with the:
“UIKeyboardWillHideNotification”
“UIKeyboardDidHideNotification”
Notifications to rearrange things afterwards.