3

The view is working fine with all other tab bar items(events, pending, explore, my profile) but for the 'more' section, the tab bar view controller when pushed to the concerned view controller shows the new bottom bar which is above the tab bar as shown in the picture.

Now I tried to set the bottom bar to none, tried to hide bottom bar in attributes inspector, nothing is working. I want help to remove this blank view regarded as the bottom bar which is showing above tab bar.

enter image description here

Ranjana Dangol
  • 1,319
  • 2
  • 13
  • 24
  • change your tablview background color as clear color as well as remove the empty cells of the tableview – Anbu.Karthik Mar 22 '17 at 05:38
  • I think the blank space you are talking about its your `tableview`, change the background color of it. – Nirav D Mar 22 '17 at 05:38
  • Disable ViewController `Adjuest Scroll View Insets` – Harshal Valanda Mar 22 '17 at 05:41
  • the empty space is not the tableview, since I have set the color of tableview to bluish gren. – Ranjana Dangol Mar 22 '17 at 05:47
  • try to disable `Adjuest Scroll View Insets` – Harshal Valanda Mar 22 '17 at 05:48
  • Check cell property color either contentView or background color could fix this issue. – Avijit Nagare Mar 22 '17 at 05:55
  • Does this happen when the keyboard appears or normally as well? – Rikh Mar 22 '17 at 05:55
  • it is not the issue of the table view or its background color. as soon as the view loads , it appears two tab bars as shown in the figure – Ranjana Dangol Mar 22 '17 at 06:15
  • If you are pushing a view controller from TabBar Controller then you need to write this in the view controller from which you are navigating : override func prepare(for segue: UIStoryboardSegue, sender: Any?) { let destinationVC = segue.destination as! YourDestinationVC destinationVC.hidesBottomBarWhenPushed = true } Hope it helps. – soumil Mar 22 '17 at 07:26
  • 1
    Debug View Hierarchy and find is it tableview https://sesamenotes.wordpress.com/2015/08/16/xcode-debugging-skills/ – RajeshKumar R Mar 22 '17 at 07:38
  • I believe your `Events viewController` embedded with `navigationController` and you accidentally ticked `shows ToolBar` in `attributes inspector`? – Joe Mar 22 '17 at 08:30
  • @Joe if it was the case, the toolbar show be shown in all the view controllers but here I can only see it in More viewcontroller – Ranjana Dangol Mar 22 '17 at 08:40
  • it won't show up on all vc's.if you embedded your navigationController as a root vc of your `More view controller`. – Joe Mar 22 '17 at 08:50
  • This might apply to you https://stackoverflow.com/questions/47315046/removing-transculent-from-uitabbar-adds-gray-frame-above-it – user2875404 Jan 22 '18 at 22:29

1 Answers1

-1

1) Write this to remove the empty cell :

self.tableview.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];

Also check the background color of cell and uitableview

ios developer
  • 3,363
  • 3
  • 51
  • 111