Fixed bug causes text field position not restored to origin if switched from other fields without closing keyboard.
apply the resign/become active workaround to both text view and text fields, as in iOS 7 keyboard could be popped before or after textDidBeginEditing, we don’t know for sure.