UITextfield shouldChangeCharactersInRange is not calling when i rotate the view from Portrait to Landscape or vice versa in iPad in iOS7

StackOverflow https://stackoverflow.com/questions/20114368

Question

I have a view in which 2 textfields are there when i rotate the view from Portrait to Landscape or from Landscape to Portrait & tried to enter value through keyboard then nothing will happen. & in most of the cases it crashes.

It works fine till iOS 6 but in iOS 7 its not working.

Please suggest/help.

Thanks in advance.

Was it helpful?

Solution

After lots of searching & hit and trail I conclude the issue is related to the command key being "stuck" in the simulator if you rotate the device in the simulator using Command-LeftArrow and Command-RightArrow short cuts, one way around this is to rotate the device by selecting the menu option instead of the keyboard shortcut(command+arrow key). This rotates the device, and seems to leave the keyboard in a working state.

so it's a bug in the simulator(iOS7).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top