Fix error with Xcode DP 5
Replace list of resignFirstResponders with single call to endEditing: