Fix error with Xcode DP 5
Replace list of resignFirstResponders with single call to endEditing:
Merge pull request #4 from PeteC/develop

Small fixes to demo project