ios - Overlay area stays on top after searching a list UIView -
I have a UIView with a list of items when I click on the search bar then the keyboard comes up and the rest The screen has a gray overlay.
When I'm on Gray Overlay If I click, the keyboard disappears, though the overlay area remains on the top and is not missing. What is the root cause of this problem? How can I solve it?
Check it after: - Write in this console: - By giving a breakpoint to the View Controller Delete the last item (UIControl in self.subview) we want to delete. Then
Po [self.view subviews] (id) $ 1 = 0x0a3155f0 & lt; __ NSArrayM 0xa3155f0 & gt; (& Lt; AtshadowTableView: 0xc341600; baseClass = UITableView; frame = (0 44, 320 411); clipsToBounds = Yes; gestureRecognizers = NSArray: 0xa627200 & gt;; layer = & lt; CALayer: 0xa626d30 & gt;; ContentOffset: {0, 0} & gt;, & lt; UISearchBar: 0xa618f40; frame = (0; 32044); text = ''; layer = & lt; calyayer: 0xa619040 & gt; & gt; & lt ; UIControl: 0xa329fc0; frame = (0 44, 320 455); alpha = 0.8; opaque = no; animation = {opacity = & lt; CABasicAnimation: 0xa32b4e0 & gt ;;}; layer = & lt; calyayer: 0xa32a060 & gt; ; & Gt;)
- (zero) searchDisplayControllerWillBeginSearch: (UISearchDisplayController *) controller {... [self performSelector: @selector (removeOverlay) withObject: afterDelay zero: .01f]; } - (zero) extract overlay {[self.view.subviews lastObject] removeFromSuperview]; }
Comments
Post a Comment