快速滚动带有文本字段的自定义表格视图

问题描述

enter image description here

在我的快速项目中,我有一个带有DropBox选项的文本字段。当我单击保管箱时,将打开一个自定义表格视图。当我滚动视图时,文本字段正在滚动,但tableview固定在同一位置。如何使用文本字段滚动tableview?有人可以帮我吗?

这是我的代码:-

  @IBAction func dropdownButtonWaspressed(_ sender: UIButton) {
        configureUi()
    }
 
    
    private func configureUi(){
        tableView.delegate = self
        tableView.dataSource = self
        tableView.register(LocationTableViewCell.self,forCellReuseIdentifier: reuserIdentifier)
        tableView.rowHeight = 60
        tableView.frame = CGRect(x: 20,y: superStackView.arrangedSubviews[6].frame.origin.y + 25 + superStackView.frame.origin.y,width: proffessionalTextField.frame.width,height: 200)
        tableView.backgroundColor = .red
        view.addSubview(tableView)
    }

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)