使用Cycript打印recursiveDescription,但是内容并不完整?

cy# [[UIApp keyWindow] recursiveDescription].toString() <_UIModalItemHostingWindow: 0x13093e490; frame = (0 0; 320 568); gestureRecognizers = <NSArray: 0x170a4d890>; layer = <UIWindowLayer: 0x178632780>>
| <UIView: 0x178373680; frame = (0 0; 320 568); opaque = NO; autoresize = W+H; layer = <CALayer: 0x178631440>>
| <UIView: 0x1783600c0; frame = (0 0; 320 568); opaque = NO; autoresize = W+H; layer = <CALayer: 0x178631e00>>
| | <UIView: 0x17836c240; frame = (0 0; 320 568); layer = <CALayer: 0x17862d080>>
| | <_UIModalItemRepresentationView: 0x1781964b0; frame = (25 222; 270 124); layer = <CALayer: 0x178630cc0>>
| | | <_UIModalItemAlertBackgroundView: 0x170198d50; frame = (0 0; 270 124); animations = { <_UIParallaxMotionEffect: 0x170c64f80>=<CAAnimationGroup: 0x178626380>; }; layer = <CALayer: 0x170623980>>
| | | | <_UIBackdropView: 0x130893290; frame = (0 0; 270 124); clipsToBounds = YES; opaque = NO; autoresize = W+H; userInteractionEnabled = NO; layer = <_UIBackdropViewLayer: 0x17062a040>>
| | | | | <_UIBackdropEffectView: 0x170197830; frame = (0 0; 270 124); clipsToBounds = YES; opaque = NO; autoresize = W+H; userInteractionEnabled = NO; layer = <CABackdropLayer: 0x170631780>>
| | | | | <UIView: 0x170376500; frame = (0 0; 270 124); hidden = YES; opaque = NO; autoresize = W+H; userInteractionEnabled = NO; layer = <CALayer: 0x170635d00>>
| | | | <UIImageView: 0x130813980; frame = (0 0; 270 124); clipsToBounds = YES; opaque = NO; userInteractionEnabled = NO; layer = <CALayer: 0x17063cde0>>
| | | <_UIModalItemAlertContentView: 0x130891b20; frame = (0 0; 270 124); clipsToBounds = YES; animations = { <_UIParallaxMotionEffect: 0x170c64f80>=<CAAnimationGroup: 0x1708317c0>; }; layer = <CALayer: 0x178632900>>
| | | | <UITableView: 0x12f854400; frame = (135 80; 135 44); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x170a4fab0>; layer = <CALayer: 0x17063ee20>; contentOffset: {0, 0}>
| | | | | <UITableViewWrapperView: 0x17037a580; frame = (0 0; 135 44); autoresize = W+H; layer = <CALayer: 0x170628860>>
| | | | | | <_UIModalItemTableViewCell: 0x1308af1e0; frame = (0 0; 135 44); text = ‘\u597d’; autoresize = W; layer = <CALayer: 0x1708300e0>>
| | | | | | | <UITableViewCellScrollView: 0x1308af4f0; frame = (0 0; 135 44); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x170a56740>; layer = <CALayer: 0x170830a80>; contentOffset: {0, 0}>
| | | | | | | | <UITableViewCellContentView: 0x17037e600; frame = (0 0; 135 43.5); gestureRecognizers = <NSArray: 0x170a514c0>; layer = <CALayer: 0x170831460>>
| | | | | | | | | <UILabel: 0x1308af930; frame = (15 0; 105 43.5); text = ‘\u597d’; clipsToBounds = YES; userInteractionEnabled = NO; layer = <CALayer: 0x170831320>>
| | | | <UIScrollView: 0x130893930; frame = (0 0; 270 61); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x170a4da10>; layer = <CALayer: 0x170828560>; contentOffset: {0, 0}>
| | | | | <UILabel: 0x1308936b0; frame = (15 19; 240 21); text = ‘iMessage \u5931\u8d25’; clipsToBounds = YES; userInteractionEnabled = NO; layer = <CALayer: 0x170627ba0>>
| | | | | <UILabel: 0x1308937f0; frame = (15 44; 240 17); text = ‘\u60a8\u9700\u8981\u66f4\u65b0\u201c\u65e5\u671f\u4e0e\u65f6\u95f4\u201d\u8bbe\u7f6e\u3002’; clipsToBounds = YES; opaque = NO; userInteractionEnabled = NO; layer = <CALayer: 0x17062c360>>
| | | | <UIView: 0x178376800; frame = (0 79.5; 270 0.5); layer = <CALayer: 0x17862dcc0>>
| | | | <UITableView: 0x12f2c6c00; frame = (0 80; 135 44); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x178846c00>; layer = <CALayer: 0x178623360>; contentOffset: {0, 0}>
| | | | | <UITableViewWrapperView: 0x17836eac0; frame = (0 0; 135 44); autoresize = W+H; layer = <CALayer: 0x17862ca40>>
| | | | | | <_UIModalItemTableViewCell: 0x1308ae930; frame = (0 0; 135 44); text = ‘\u8bbe\u7f6e’; autoresize = W; layer = <CALayer: 0x1706361c0>>
| | | | | | | <UITableViewCellScrollView: 0x1308aec40; frame = (0 0; 135 44); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x17065c770>; layer = <CALayer: 0x170829880>; contentOffset: {0, 0}>
| | | | | | | | <UITableViewCellContentView: 0x1783705c0; frame = (0 0; 135 43.5); gestureRecognizers = <NSArray: 0x178453680>; layer = <CALayer: 0x178628320>>
| | | | | | | | | <UILabel: 0x130950c30; frame = (15 0; 105 43.5); text = ‘\u8bbe\u7f6e’; clipsToBounds = YES; userInteractionEnabled = NO; layer = <CALayer: 0x17862ce40>>
| | | | <UIView: 0x17836d800; frame = (135 80; 0.5 44); layer = <CALayer: 0x1786264e0>>``

后面的内容不知道为什么就不再展示了?有同学知道是为什么吗?

请问你解决了吗

我也是有这个问题,是终端显示的原因吗,你解决了吗

同样遇到了显示不全的问题,请问楼主解决了吗

如果你使用mac自带的终端就不会有这个问题

曾经遇到过……当时不影响分析就忽略了……下次得找到原因啊

在linux 上好像也不会,还是windows里用SecureCRT不会?
忘记了,只记得在mac上用iterm2是不能完全显示的。
实在不行的话把recursiveDescrioption保存到文件里面呀,
[[UIApp.keyWindow recursiveDescription ] writeToFile:"/var/mobile/viewdump.txt" atomically:NO encoding:4 error:NULL];

对。也是用的iTerm2。

看这个帖子