In storyboard BSViewController view add tap gesture recognizer to end editing and hence dismiss keyboard.