issues
search
ko1o
/
PYSearch
🔍 An elegant search controller which replaces the UISearchController for iOS (iPhone & iPad) .
MIT License
3.83k
stars
752
forks
source link
tableviewContentInset
#113
Open
chaserr
opened
7 years ago
chaserr
commented
7 years ago
(void)keyboardDidShow:(NSNotification
)noti { NSDictionary
info = noti.userInfo; self.keyboardHeight = [info[UIKeyboardFrameEndUserInfoKey] CGRectValue].size.height; self.keyboardShowing = YES; // Adjust the content inset of suggestion view self.searchSuggestionVC.tableView.contentInset = UIEdgeInsetsMake(-30, 0, self.keyboardHeight + 30, 0); } 你好,我想问一下,上面方法里的这个30是怎来的?为什么要定义30呢?