问题
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:

回答1:
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.
来源:https://stackoverflow.com/questions/10246945/instance-variable-access-via-self-results-in-a-null-pointer-dereference