0

I have created a tabbar application with 6 tabs. 4 tabs and 1 "more" tab are showing when app launch. and its expected. 2 tab will show when user will click on more option. When I clicked on more option, I am seeing list of 2 tab controllers. When I am selecting the a tab , nothing happened. It should be redirected to respective view controllers.

halfer
  • 19,824
  • 17
  • 99
  • 186
VipinYadav
  • 808
  • 4
  • 16

1 Answers1

1
    let moreview = self.moreNavigationController.topViewController?.view as? UITableView

    moreview?.tintColor = UIColor.darkText
    moreview?.tableFooterView = UIView()
    let headerView: UIView = UIView()
    headerView.backgroundColor = UIColor.clear
    headerView.frame=CGRect(x: 0, y: 0, width: (moreview?.frame.width)!, height: 44)
    moreview?.tableHeaderView = headerView
    moreview?.bounces = false
    if moreview?.subviews.count != nil {
        for cell: UITableViewCell? in moreview?.visibleCells ?? [UITableViewCell?]() {
            cell?.backgroundColor = UIColor.clear
        }
    }
VipinYadav
  • 808
  • 4
  • 16