I have check this in iOS 12 it's working fine. Issue is when I am going to search and push to second VC it working fine. when I back and again push to second VC then UITableview goes under the NavigationBar. Normal push working fine only issue when search active and push second time.
UnderTopBar
forKeyPath:"hidesShadow"
edgesForExtendedLayout
automaticallyAdjustsScrollViewInsets
extendedLayoutIncludesOpaqueBars
self.view layout
too. if anyone have answer of this and any suggestion then please tell me. Thank You.
IF any one have same issue then please try this solution..
It's working for me. I hope it's working for you too.
Objective-C
-(void)viewWillDisappear:(BOOL)animated{
if (@available(iOS 13.0, *)) {
[self.navigationController.view setNeedsLayout];
[self.navigationController.view layoutIfNeeded];
}
}
Swift
func viewWillDisappear(_ animated: Bool) {
if (@available(iOS 13.0, *)) {
self.navigationController?.view.setNeedsLayout()
self.navigationController?.view.layoutIfNeeded()
}
}
If this is not working then please check in OS Version 13.1.3. I think it's working.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.