ios - 无法单击选项卡栏 Controller 中的更多选项列表

标签 ios swift uitabbarcontroller xcode9 uitabbaritem

<分区>

我创建了一个带有 6 个选项卡的选项卡栏应用程序。应用启动时会显示 4 个选项卡和 1 个“更多”选项卡。和它的预期。 2 选项卡将显示用户何时单击更多选项。当我点击更多选项时,我看到了 2 个选项卡 Controller 的列表。当我选择 a tab 时,没有任何反应。它应该被重定向到相应的 View Controller 。

最佳答案

    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
        }
    }

关于ios - 无法单击选项卡栏 Controller 中的更多选项列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51684838/

相关文章:

iphone - 在两个标签之间保持 map 同步

ios - UIDatePicker选择的日期不出现

ios - WebView : Returning nil at loadRequest while true in URLRequest

iphone - iOS - Xcode 模拟器上的颜色与设备上的颜色不同

ios - Rx swift : Does disposed(by: disposeBag) actually work?

ios - swift 错误 : '&' used with non-inout argument of type 'UnsafeMutablePointer'

ios - SwiftUI 中的后缘和前缘是什么意思?

iphone - iOS UITabBar : Remove top shadow gradient line

ios - 更改非事件选项卡栏图标的颜色

ios - Swift 通知中心导致内存泄漏