When does the UINavigationBar shadow show? (iOS 6)
By : Shibly Sadik
Date : March 29 2020, 07:55 AM
I wish this help you The workaround, which I found half a year later, is actually embarrassingly simple: code :
self.navigationController.navigationBar.clipsToBounds = NO;
|
How can remove the bottom shadow of UINavigationBar?
By : Douglas Withers
Date : March 29 2020, 07:55 AM
like below fixes the issue The easiest way to remove the shadow underneath the UINavigationBar is to set a custom background image and then set the shadow image to a blank UIImage. CustomViewController.m code :
- (void)viewDidLoad
{
[self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"Background"] forBarMetrics:UIBarMetricsDefault];
[self.navigationController.navigationBar setShadowImage:[[UIImage alloc] init]];
}
|
Remove UINavigationBar background and preserve shadow
By : dataanddoc
Date : March 29 2020, 07:55 AM
hop of those help? I was able to obtain the desired behavior by first preventing the table view controllers' content from extending underneath the top navigation bar via the Extend Edges option. To remove the navigation bar's appearance, I made it a Black Translucent bar, then added a new blank image for its background image like so: code :
self.navigationController?.navigationBar.setBackgroundImage(UIImage(), forBarMetrics: UIBarMetrics.Default)
UIViewController
containerView
UINavigationController
UITableViewController ->
UITableViewController ->
UITableViewController...
|
Can't remove shadow from UINavigationBar
By : Douglas
Date : March 29 2020, 07:55 AM
it should still fix some issue I can't remove the shadow from my UINavigationBar for some reason on iOS6. Why isn't this working? I've tried the following: , You have to do the work on a NavigationBar instance...
|
How to remove shadow below UINavigationBar with UISearchController
By : Grawll
Date : March 29 2020, 07:55 AM
it should still fix some issue I have not found good solution too... for now I will hide it this way: code :
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
if let imageView = navigationItem.searchController?.searchBar.superview?.subviews.first?.subviews.first as? UIImageView {
imageView.isHidden = true
}
}
|