Changed viewWillDisappear to viewDidDisappear because frame not resized sometimes.