照着书中的例子:
运行?expand后没输出
运行[[UIApp keyWindow] recursiveDescription]
输出:
@"<UIWindow: 0x175f3000; frame = (0 0; 320 568); gestureRecognizers = <NSArray: 0x175f3780>; layer = <UIWindowLayer: 0x175f3230>>\n | <UILayoutContainerView: 0x17547d90; frame = (0 0; 320 568); autoresize = W+H; layer = <CALayer: 0x17547d60>>\n | | <UILayoutContainerView: 0x17557ff0; frame = (0 0; 320 568); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x17557f50>; layer = <CALayer: 0x17557e60>>\n | | | <UINavigationTransitionView: 0x17554ba0; frame = (0 0; 320 568); clipsToBounds = YES; autoresize = W+H; layer = <CALayer: 0x17554db0>>\n | | | | <UIViewControllerWrapperView: 0x17533ae0; frame = (0 0; 320 568); layer = <CALayer: 0x1756e150>>\n | | | | | <UILayoutContainerView: 0x176c9890; frame = (0 0; 320 568); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x176d6c00>; layer = <CALayer: 0x176ca340>>\n | | | | | | <UINavigationTransitionView: 0x176cda40; frame = (0 0; 320 568); clipsToBounds = YES; autoresize = W+H; layer = <CALayer: 0x176cdaf0>>\n | | | | | | | <UIViewControllerWrapperView: 0x17501120; frame = (0 0; 320 568); layer = <CALayer: 0x175010f0>>\n | | | | | | | | <NotesBackgroundView: 0x17526420; frame = (0 0; 320 568); gestureRecognizers = <NSArray: 0x175011e0>; layer = <CALayer: 0x17668b90>>\n | | | | | | | | | <NotesTextureBackgroundView: 0x17668af0; frame = (0 0; 320 568); clipsToBounds = YES; layer = <CALayer: 0x17668ac0>>\n | | | | | | | | | | <NotesTextureView: 0x17668730; frame = (0 -64; 320 640); layer = <CALayer: 0x17668700>>\n | | | | | | | | | <NoteContentLayer: 0x17666cc0; frame = (0 0; 320 568); layer = <CALayer: 0x17666b80>>\n | | | | | | | | | | <UIView: 0x176669e0; frame = (16 0; 288 0); hidden = YES; layer = <CALayer: 0x176669b0>>\n | | | | | | | | | | <NotesScrollView: 0x17bc0000; baseClass = UIScrollView; frame = (0 0; 320 568); clips
后面那段没有出来,
所以也看不到NoteTextView.
请问这是什么原因?
不如用Reveal看,层级关系也清晰,这个缩进也不对,很费劲
直接用flex看了
1 个赞