UIScrollView EXC_BAD_ACCESS crash in iOS SDK

前端 未结 9 1639
暖寄归人
暖寄归人 2020-12-24 11:49

I have an iPhone SDK application that has several views that appear and disappear as the user creates content. After using the application on a device for a while, I get th

9条回答
  •  甜味超标
    2020-12-24 12:12

    After facing the same problem I set:

    self.collectionView.delegate = nil;
    

    in - (void)viewDidLoad (before actually setting ViewController as collectionView delegate) and -(void)viewWillDisappear:(BOOL)animated

    Everything works fine now.

    Thanks for help.

提交回复
热议问题