我创建了一个包含6个标签的标签栏应用。应用启动时会显示4个标签和1个“更多”标签。和它的预期。当用户单击更多选项时,将显示2选项卡。当我单击更多选项时,我看到2个选项卡控制器的列表。当我选择一个标签时,什么也没发生。应该将其重定向到相应的视图控制器。
答案 0 :(得分: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
}
}