iOS 11 large-title navigation bar not collapsing
Good news! I've just figured out that if I set "Large Titles" to "Never" on the storyboard, and then set it via code, then it works:
- (void)viewDidLoad {
[super viewDidLoad];
self.navigationItem.largeTitleDisplayMode = UINavigationItemLargeTitleDisplayModeAutomatic;
}
Seems like Apple forgot to handle the case when the navigation item has its largeTitleDisplayMode
set via the Interface Builder.
So until they fix this issue, leave "Large Titles" as "Never" on storyboards, and set them via code in viewDidLoad
.
You just need to do that to the first view controller. Subsequent view controllers honor the value in storyboard.
NavigationBar large title not collapse when I have custom image/view under tableView iOS 13
So, after a long search and a lot of tries, finally I figure out in a different way:
tblSettings.backgroundView = UIImageView(image: UIImage(named: "yourImageName"))
Setting backgroundView
to UITableView
it will allow navigation bar to animate properly to large and normal titles.
Hope this will someone!
iOS 11 large title navigation bar snaps instead of smooth transition
I faced same issue - I had UIViewController
embedded in UINavigationController
, the UIViewController
had tableview with leading, trailing, top, bottom constraints to safe area. The whole tableview behaved jumpy / snappy. The trick was to change top constraint of tableview to superview.
Related Topics
How to Resize Table Cell Based on Textview
How to Programmatically Get iOS Status Bar Height
iOS - 'Myproject-Swift.H' File Not Found When Running Unit Tests for Swift
Cookie Sharing Between Multiple Wkwebviews
Switching Viewcontrollers with Uisegmentedcontrol in iOS5
How to Get Core Data Object from Specific Object Id
iOS - Ensure Execution on Main Thread
Wkwebview and Nsurlprotocol Not Working
Uislider That Snaps to a Fixed Number of Steps (Like Text Size in the iOS 7 Settings App)
Uikeyboardboundsuserinfokey Is Deprecated, What to Use Instead
Linking Child View Controllers to a Parent View Controller Within Storyboard
How to Add a Button to Uinavigationbar
How to Do Authentication in Uiwebview Properly
Class Plbuildversion Is Implemented in Both/Applications
How to Properly Order Data from Firebase Chronologically
What Is MACh-O Type Should I Use It in My iOS Objective-C Project