objective c - IOS keyboard on hide button -
i want monitor keyboard hide button on ios , fire event on that. i'm talking about:
i want monitor actual button pressed user. don't want event when keyboard hides.
[[nsnotificationcenter defaultcenter] addobserver:self selector:@selector(keyboardwillhide:) name:uikeyboardwillhidenotification object:nil]; -(void)keyboardwillhide:(nsnotification *)notif { //keyboard hide }
uikeyboarddidhidenotification
can used.
if don't have other triggers hide keyboard (such tap outside or hide on return) can ensure event triggered 'keyboard hide' button
Comments
Post a Comment