1. General view on the keyboard
Gesture
-(void) Touchesbegan: (Nsset *) touches withevent: (uievent *) event{
[Self.cellphone Resignfirstresponder];
[Self.password Resignfirstresponder];
}
The keyboard is closed on the 2.tableView
By scrolling to pick up
-(void) Scrollviewdidscroll: (Uiscrollview *) ScrollView
{
[TF Resignfirstresponder];
[Self.name Resignfirstresponder];
}
Through gestures
-(void) Viewdidload {
[Super Viewdidload];
UITapGestureRecognizer *tableviewgesture = [[UITapGestureRecognizer alloc] initwithtarget:self action: @selector ( Commenttableviewtouchinside)];
tableviewgesture.numberoftapsrequired = 1;
Tableviewgesture.cancelstouchesinview = NO;
[Self.tableview Addgesturerecognizer:tableviewgesture];
}
-(void) commenttableviewtouchinside{
[TF Resignfirstresponder];
[Self.name Resignfirstresponder];
}
Several ways IOS has to pick up the keyboard