Previous commit should have said viewWIllDisappear not viewDidLoad to close keyboard.