Running an analysis on my app results in the logical error in the subject. I don't really know what that means. Below is a screen of the error:
Asked
Active
Viewed 3,742 times
1 Answers
34
The path it's showing you is super
returning nil
. If this happens, you continue to execute the method; the implicit self deference is because isShowingLandscapeView
is an instance variable. You need to put all your initialisation inside the if (self)
block to avoid this.

Adam Wright
- 48,938
- 12
- 131
- 152
-
2+1 because I didn't know that accessing an ivar would dereference the object! – Christian Schnorr Apr 20 '12 at 13:50