Crash on EXC_Breakpoint Scroll View

前端 未结 3 824
误落风尘
误落风尘 2021-02-19 15:39

This is a new problem I have been having ever since I\'ve been updating my app for iOS 7. Everytime I launch the app on my device or simulator, I get this error code

Re

3条回答
  •  星月不相逢
    2021-02-19 15:41

    Another (inelegant, imo) solution is to set your table's delegate to nil on dealloc:

    - (void)dealloc {
        [_tableView setDelegate:nil];
    }
    

    Seems to be a bug, but I can't guarantee. I am still looking for a reasonable explanation for that.

    Note: that probably applies for any UIScrollView subclass, not only UITableView.

提交回复
热议问题