6. 使用 LLDB expression 命令调试动态更新 UI

Last updated
Was this helpful?

Last updated
Was this helpful?
Was this helpful?
po [[[UIApplication sharedApplication] keyWindow] recursiveDescription]po [[[UIApplication sharedApplication] keyWindow] recursiveDescription]
<UIWindow: 0x7fd94a616c50; frame = (0 0; 375 667); autoresize = W+H; gestureRecognizers = <NSArray: 0x60c00025b120>; layer = <UIWindowLayer: 0x60c00003f7c0>>
| <UIView: 0x7fd94a701f90; frame = (0 0; 375 667); autoresize = W+H; layer = <CALayer: 0x60400003b820>>
| | <UIView: 0x7fd94a709640; frame = (30 30; 315 120); autoresize = RM+BM; layer = <CALayer: 0x60400003b860>>
| | <UIView: 0x7fd94a709a30; frame = (30 180; 315 120); autoresize = RM+BM; layer = <CALayer: 0x60400003bac0>>expression -- id $testView = (id)0x7fd94a709640expression -- (void)[$testView setBackgroundColor:[UIColor redColor]]expression -- (void)[CATransaction flush]