1, the following code in the class is initialized by accessing the singleton

2, this method - (viod) undoHightlightComplete (XFMarkingComplete) complete; Is by getting a singleton to call; Attribute strongSelf. ShowImageMake showImageMake is initialized by lazy loading;
- (XFShowImageMake *) showImageMake {
if (! _showImageMake) {
Init _showImageMake=[[XFShowImageMake alloc]];
}
Return _showImageMake;
}
3, the application of the non will collapse problems now, wrong positioning in method showImageWithGrayMask: inside, the following code:
If (self. ShowImageBlock) {
Self. ShowImageBlock (MatToUIImage (image));
}
Wrong positioning in the if (self. ShowImageBlock) {that line of the self, tip: Thread 2: EXC_BAD_ACCESS (code=1, the address=0 x20)
Pictures are as follows:

5, the collapse is not a stable return, test the old long long to resurface,
Surprisingly what circumstance, singleton property be recycled?
Or in front of weakSelf strongSelf use have to be the problem?
Help leaders to solve ~