0

I have an UIViewController embed in one NavigationController who contain a TableViewController,

Sometime when I reload, only when I do big Swipe Up-Down I got this error

2017-05-04 15:40:40.333630+0200 NameOfMyApp[448:48840] *** Terminating app due to uncaught exception 'CALayerInvalid', reason: 'layer is a part of cycle in its layer tree'

Of course I search before the question, the answer I found was deprecated or not working, For exemple a lot of people answered by remove the outlet accessoryView from the TableView, here my connexion inspector enter image description here

I don't see no where this outlet

Edit:

In my UITableViewCell, I still don't have any accessoryView link enter image description here

Edit2:

let refreshTableView: UIRefreshControl = UIRefreshControl()

override func viewDidLoad() {
        super.viewDidLoad()
        self.tableView.delegate = self
        self.tableView.dataSource = self
        refreshTableView.addTarget(self, action: #selector(MainViewController.refreshMyTableView), for: UIControlEvents.valueChanged) // Function who call the back, and after reload my tableview with self.tableView.reloadData()
        if #available(iOS 10.0, *) {
            self.tableView.refreshControl = refreshTableView
        } else {
            tableView.addSubview(refreshTableView)
        }
Badr Filali
  • 279
  • 5
  • 21

1 Answers1

1

The accessoryView is part of the UITableViewCell, you are looking at UITableView outlets. You would need to select the UITableViewCell and check if you have something hooked to your accessoryView Outlet

pesch
  • 1,976
  • 2
  • 17
  • 29