Strange Crash when dismissing view controller, auto-layout to blame?

后端 未结 4 673
甜味超标
甜味超标 2021-01-02 15:03

I am experiencing a very strange crash, here is the backtrace.

* thread #1: tid = 0x2403, 0x3379516c CoreFoundation`CFHash + 8, stop reason = EXC_BREAKPOINT          


        
4条回答
  •  耶瑟儿~
    2021-01-02 15:37

    In my case this crash happened when I had a view controller in a storyboard but loaded the view contents in from a NIB with the same view controller as the file owner. This normally works fine, but I had the view outlet set in both the storyboard and the NIB, which triggered the iOS6 "add subview twice" bug. By clearing the view outlet in the NIB all was fixed.

提交回复
热议问题