What's the difference between “p” and “po” in Xcode's LLDB debugger?

后端 未结 9 1479
无人及你
无人及你 2021-02-04 12:27

Example. I write the following string in my old project and a new, clear one:

UIInterfaceOrientation k = [UIApplication sharedApplication].statusBarOrientation;
         


        
9条回答
  •  故里飘歌
    2021-02-04 12:47

    UIInterfaceOrientation is no (Objective-C) object, but an integer (enum:NSInteger). You should not use po (print object) at all.

提交回复
热议问题