BFNavigationBarDrawer icon indicating copy to clipboard operation
BFNavigationBarDrawer copied to clipboard

Crash at line 240 of BFNavigationBarDrawer.m

Open isair opened this issue 10 years ago • 4 comments

Here are the logs.

screen shot 2015-05-22 at 5 54 40 pm

I am calling the hideAnimated method from my view controller's viewWillDisappear. It is important to note that this crash doesn't happen most of the time.

isair avatar May 23 '15 00:05 isair

Line 240 is [self.superview layoutIfNeeded]. Since you're calling hideAnimated in viewWillDisappear, confirm that when this line is executed you actually still have a superview.

chrisdroukas avatar May 27 '15 14:05 chrisdroukas

I am pretty sure that a message sent to a nil object is treated as no-op in Objective-C. The problem's cause should lie elsewhere.

isair avatar May 28 '15 20:05 isair

I can't reproduce this. Could you maybe post your view controller's code in a gist, or at least the relevant parts? Thank you.

DrummerB avatar Jun 02 '15 12:06 DrummerB

I think that I know when this error occurs. It only takes place when view controller interactive swipe takes place. I have the same issue. I didn't manage to fix it.

kamilpowalowski avatar Aug 11 '15 13:08 kamilpowalowski