Skip to content

Instantly share code, notes, and snippets.

@akirahrkw
Created February 18, 2016 03:27
Show Gist options
  • Save akirahrkw/56e425cd9d0a1d05db2f to your computer and use it in GitHub Desktop.
Save akirahrkw/56e425cd9d0a1d05db2f to your computer and use it in GitHub Desktop.
How to hide UINavigationBar 1px bottom line in Swift
for subView in navigationController!.navigationBar.subviews where NSStringFromClass(subView.dynamicType) == "_UINavigationBarBackground" {
for imageView in subView.subviews where NSStringFromClass(imageView.dynamicType) == "UIImageView" {
imageView.hidden = true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment