iOS 13 - When Search Active Push to other VC then that VC UITableView goes under the NavigationBar in Swift 4

前端 未结 1 460
面向向阳花
面向向阳花 2021-01-23 19:20

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 UITablevie

相关标签:
1条回答
  • 2021-01-23 19:35

    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.

    0 讨论(0)
提交回复
热议问题