Closed mrfer closed 7 years ago
Please help with the question. This situation, when I open the DrawerViewController in the state .open, then scrolling is disabled, if the number of cells can fit into the screen sizes. And accordingly I can not catch the event here:
func scrollViewDidScroll(_ scrollView: UIScrollView) { self.searchBar.setShowsCancelButton(false, animated: false) }
Unfortunately, that’s how scrollviews embedded inside of other scrollviews works on iOS.
Your best option would be to find another place where you could call that line of code.
Please help with the question. This situation, when I open the DrawerViewController in the state .open, then scrolling is disabled, if the number of cells can fit into the screen sizes. And accordingly I can not catch the event here:
func scrollViewDidScroll(_ scrollView: UIScrollView) { self.searchBar.setShowsCancelButton(false, animated: false) }