ios - UITableView overlapping with Status and Navigation bar when returning from detail view -
As stated, just fine when you start TableView.
I used to expand this code to clear the status bar:
[self.navigationController.navigationBar setBackgroundImage: [UIImage new] forBarMetrics: UIBarMetricsDefault]; Self.navigationController.navigationBar.shadowImage = [UIImage new]; Self.navigationController.navigationBar.translucent = Yes; Self.navigationController.navigationBar.backgroundColor = [UIColor clear collar]; Self.navigationController.view.backgroundColor = [UIColor clear collar]; After returning from DetailView, something happens:
I tried self.tableView.contentInset - (zero) viewDidLoad and - (zero) viewDidApp and it does not work. The initial view controller is a subclass of UITableViewController, not UIViewController.
Both view controllers are probably within the same UINavigationController, which means they share the same UINavigationBar Are there. You have to set the initial value of the navigation when you return to the initial view controller. Right now, when you come back, cells overlap with the navigation bar, because those times are translucent set those sequences to first view controllers- viewWillAppear method
self.navigationController.navigationBar.translucent = no; Self.navigationController.navigationBar.backgroundColor = #BARCOLOR;
जावा प्रोग्रामिंग कोडर्स के लिए उदाहरण
ReplyDeleteस्कीमा उदाहरण को मान्य करना