When I'm doing a segue between views with largeTitle on in the first and off in the second there is always a black bar while the animation from large to small runs. Is there any way to fix that? Can I change that color?
Related
Header image with gray bar on top
I am converting our app to fit correctly on newer iOS devices. We are using xib files for the UI. I added a launch screen storyboard to start off the new formatting. I noticed a gray bar across the top of every screen. It is not part of the view controller and I've tried removing the status bar but that only makes the text and icons disappear. I don't think it's the navigation bar either since we have that hidden as well. I have checked the Safe Area Layouts.
Any ideas on what this is and how I can remove it to extend my view all the way to the top? The blue in the image is the color I currently set the background of my view controller and we have a custom header view below that.
Using the View Hierarchy, as suggested, I was able to see the view behind my main view. I inspected the code for that initial view and found the previous developers had offset the Navigation Controller by 20. That is what created the bar on all the views. I have adjusted to remove the offset and it looks perfect now.
I have a transparent custom navigation bar like the one on this picture:
I would like to have a modal view that appears from just under the navigation bar up to half of the screen and make it feels like the navigation bar is expending until half of the screen. And I would like to animate it like if it is sliding down. It will just contain a UILabel, and it will appear when I click on the "i" information button on the top right corner.
I don't know how to make a translucent modal view appears from the middle of the screen instead of from a border. Especially since my navigation bar is transparent and my modal view should not appears behind it while appearing. Do you have any example or tutorial to help me do that?
I am coding in Swift :)
I have a UITabBarController with 3 tabs. One of the UIViewControllers, which controls one of the tabs, is a UITableViewDelegate and has an embedded UITableView which uses a portion of the screen. There are some buttons that appear below the UITableView.
This UIViewController generally works, but if I make changes to the code (could be in any file), sometimes this UIViewController will display nothing but black between the Navigation Bar and the Tab Bar. I can switch to other tabs and they act as expected.
Even stranger, if I go to the Storyboard and change the order of the tabs, then the problematic UIViewController starts working again. All I am doing is changing the order of the tabs ...
Any ideas about what is going on here?
I'm no expert on swift, but I've spent lots of time with tab bars and UITableViews inside of UIViewControllers. Here are things that I would check/do:
reset my simulator (run it, and use the simulator menus)
clean my build area
change the table view background color to red
change the table view tintColor to green
change the outermost view background color to yellow
change the outermost view tintColor to blue
now when it goes black, maybe it will show another color
check, and double check the constraints on the table view
the blackness might be caused by no cells getting displayed, or by the whole table view losing its sizes somehow
When my app is launching, as soon as the launch image is replaced by the initial view, a white gradient appears behind the navigation bar for one second (1st image) then disappears (2nd image).
I've tried to change the initial view to a different one to check if it's adding that gradient but it's still being added even with a plain UITableViewController.
Any clue or ideas on what might be causing this gradient during the transition from the launch image to the initial view?
update the viewwillappear method to set the navigation bar translucent
set
navigationbar.translucent = NO
Apparently this was a bug in iOS and has been fixed in 7.1
As per the picture below, part of the TableView is appearing behind the Navigation Bar.
I had been ignoring it, thinking it was just the way the storyboard drew things because it looks ok in the app. But it can be problematic - sometimes, to select the cell behind the Navigation Bar, one needs to use the Document Outline.
Is that just how it goes? Or is there a way to get Xcode to draw things properly?
It looks like you have selected a translucent navigation bar which will not push down other subviews. Try using the standard or black navigation bar. It probably looks fine in the app because your navigation controller using the non-translucent bar.