Here is the problem
screenshot
There is white space between Cell and TableView beginning. But when i delete the push segue and navigation bar disappear then disappear also the white space.
And when I run the application with the white space, everything is pretty cool, but tableview doesn't interact, like scrolling or selecting items.
Thanks for advice.
Related
I'm using a usual view controller with UITableView which is embedded into a navigation controller which is embedded into a tabbar controller:
TabBar Controller
Navigation Controller
UIViewController with TableView
I'm using NavBar with a large title. When I scroll up in a usual way navigation bar with its large title has normal height. But when I touch status bar and tableView scrolls to top, navigation bar gets extra white space between a status bar and its title:
Normal space when scrolling with a finger: https://ibb.co/0BWgB0T
Extra space when touching status bar: https://ibb.co/LxFwDKx
The only thing that helps to avoid that extra space is the following:
edgesForExtendedLayout = UIRectEdge(rawValue: 0)
But it makes tabBar grey, not white as it should be and anyway seems like a quite incorrect solution.
Have anyone faced the same problem?
Ok, suddenly I've found a solution. Yes, it includes this line of code:
edgesForExtendedLayout = UIRectEdge(rawValue: 0)
But also I had to set a tabBar color to preferable and disable its "Translucent" property in Interface Builder.
Hope it'll help someone.
I'm making a simple app and I love using blue effects throughout the UI. Normally if I use a tableView I pin the 4 edges all the way out to the edge of the viewController, and everything scrolls correctly "behind" the blurred navigation bar and tab bar.
However, for one scene I want one view "Original Post VisualFX View" to be "pinned" at the top while the answer fields scroll behind that view and the nav/bottom bars.
Here's the view hierarchy:
Even after I turned off "clip to bounds" on the tableview as well as every view in the hierarchy above it, I can only get the tableView to scroll a BIT behind the Original Post VisualFX View and the bottom tab bar before they disappear. I assume it's because tableViews don't draw things that aren't visible at all within its bounds.
I'm trying to do everything in the Storyboard in IB with as little code as possible. I feel like this shouldn't be that hard, right?
So after tinkering for a while, I found a workaround: use a TableViewController for the whole scene, and just use a custom TableViewCell as the header, which pins it at the top when you scroll. By using ClearColor for the background and putting a UIVisualEffectView with blur in the background, I'm able to get everything to work beautifully.
A table view is embedded in a view controller, and a black space appears between two cells. I tried to adjust cell height in `heightForRow:atIndexPath' method, but nothing happens. The space is first visible between the two first cells, and after the cell disappeared and re-appeared, it's visible between the second and third cell.
Does anyone got a solution to fix this problem?
That was the search bar border. Just set its tint color to clear color to remove this black border.
I have a view with a tab bar and a navigation bar. I have a few buttons and textfields in the view. I have some empty space left at the bottom of my view.
While testing on 3.5 inch screen the empty space is occupied by the tab bar. But, on a 4 inch screen I can see the space left clearly. I tried auto resizing every way but it's not working.
Should I go for creating a separate view for the 4 inch screen?
While working with tab bar you dont have to bother for leaving space for tab bar, it'll make it's space by resizing (not cropping) the height of your view. In result the screen size will minimize.
But in this case view's AutoResizingProperty Must be like:
[yourView setAutoresizingMask:UIViewAutoresizingFlexibleHeight];
Or if you are dealing with XIB then it should look like:
With these setting your view will resize itself on bot size of windows.
I've changed my UITableView to be grouped in Interface Builder (which looks so much nicer!), but now the Disclosure Indicator against my UITableView row moves a few pixels up and right whenever I press my edit button in my navigation bar (at the same time as the red delete buttons move in)!
Has anyone seen this before or got any suggestions?
Edit:
Ive added a screen shot to this question. While it is very hard to notice even on these large screen shots, the chevron in the upper right corner of the second picture is a few pixels up and right of the chevron on the first picture. This is obviously more apparent when it moves in front of your eyes. On the second picture, the edit button has been pressed (which you can tell, because the delete icon has appeared)