UITextField resigns and become firstResponder if menuViewController is hidden or not.