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
I don't see no where this outlet
Edit:
In my UITableViewCell, I still don't have any accessoryView link
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)
}