| | |
| | | tableView.delegate = self |
| | | tableView.dataSource = self |
| | | tableView.separatorStyle = .none |
| | | tableView.showsVerticalScrollIndicator = false |
| | | tableView.showsHorizontalScrollIndicator = false |
| | | alpha = 0 |
| | | layoutIfNeeded() |
| | | setRx() |
| | |
| | | if defaultStu != nil{ |
| | | studentChooseView.selectStudents = defaultStu! |
| | | } |
| | | studentChooseView.tableView.register(UINib(nibName: "StudentInfo_2_TCell", bundle: nil), forCellReuseIdentifier: "_StudentInfo_2_TCell") |
| | | studentChooseView.tableView.register(UINib(nibName: "StudentInfo_2_1_TCell", bundle: nil), forCellReuseIdentifier: "_StudentInfo_2_1_TCell") |
| | | studentChooseView.frame = sceneDelegate?.window?.frame ?? .zero |
| | | studentChooseView.clickClouse = clickClouse |
| | | sceneDelegate?.window?.addSubview(studentChooseView) |
| | |
| | | } |
| | | |
| | | func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { |
| | | let cell = tableView.dequeueReusableCell(withIdentifier: "_StudentInfo_2_TCell") as! StudentInfo_2_TCell |
| | | let cell = tableView.dequeueReusableCell(withIdentifier: "_StudentInfo_2_1_TCell") as! StudentInfo_2_1_TCell |
| | | cell.indexPath = indexPath |
| | | cell.activityDetailPartModel = viewModel.dataSource.value[indexPath.row] |
| | | cell.img_radio.isHidden = false |
| | | cell.btn_delete.isHidden = true |
| | | cell.btn_edit.isHidden = true |
| | | // cell.btn_delete.isHidden = true |
| | | // cell.btn_edit.isHidden = true |
| | | |
| | | cell.img_radio.image = UIImage(named: selectStudents?.id == viewModel.dataSource.value[indexPath.row].id ? "btn_select" : "btn_select_u") |
| | | if selectStudents?.id == viewModel.dataSource.value[indexPath.row].id{ |