Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @IBAction func plusBtnAction(_ sender: UIButton) {
- var cell:TableViewCell = self.tebleView.dequeueReusableCell(withIdentifier: "Cell")! as UITableViewCell as! TableViewCell
- let indexPath = IndexPath(row: sender.tag, section: 0)
- cell = (self.tebleView.cellForRow(at: indexPath) as? TableViewCell)!
- if cell.tag == sender.tag {
- print(sender.tag)
- print(cell.countLbl.tag)
- cell.countLbl.text = "(Int(cell.countLbl.text!)! + 1)"
- }
- else {cell.countLbl.text = ""}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement