Fixed clearTextFieldFromView... method to work in landscape as well as portrait.