endEditing


#1

Is endEditing necessary in viewWillDisappear? I don’t see any difference whether it is there or not.

I read that endEditing is to force the first responder to resign. If so, in which cases do we need to force it?

-(void)viewWillDisappear:(BOOL)animated
    [self.view endEditing:YES];