Make it work with iOS7

Change UIInputToolbar.delegate to UIInputToolbar.inputDelegate since iOS7 has UIToolbar.delegate which clashes with UIInputToolbar.delegate.