Microsoft Word - iOSAppReverseEngineering.docx

(Romina) #1

Figure 6-12 Two lines of sentences are hidden


This indicates that the level of MailStatusUpdateView is lower than or equal to the button,


right? So, next let’s check the superview of MailStatusUpdateView. From recursiveDescription,


we realize that its superview is MailStatusBarView:


| | | | | | | <MailStatusBarView: 0x146c4110; frame = (69 0; 182
44); opaque = NO; autoresize = BM; layer = <CALayer: 0x146f9f90>>
| | | | | | | | <MailStatusUpdateView: 0x146e6060; frame = (0 0;
182 44); opaque = NO; autoresize = W+H; layer = <CALayer: 0x146c8840>>

Try to hide it and see if the button disappears:


cy# [#0x146e6060 setHidden:NO]
cy# [#0x146c4110 setHidden:YES]

It’ s disappointing; two sentences are hidden but not the button, which means that the level


of MailStatusBarView is still not high enough, let’s keep looking for its superview, i.e.


UIToolBar:


| | | | | | <UIToolbar: 0x146f62a0; frame = (0 524; 320 44); opaque =
NO; autoresize = W+TM; layer = <CALayer: 0x146f6420>>
| | | | | | | <_UIToolbarBackground: 0x14607ed0; frame = (0 0; 320
44); autoresize = W; userInteractionEnabled = NO; layer = <CALayer: 0x14607d40>>
| | | | | | | | <_UIBackdropView: 0x15829590; frame = (0 0; 320
44); opaque = NO; autoresize = W+H; userInteractionEnabled = NO; layer =
<_UIBackdropViewLayer: 0x158297e0>>
| | | | | | | | | <_UIBackdropEffectView: 0x14509020; frame =
(0 0; 320 44); clipsToBounds = YES; opaque = NO; autoresize = W+H;
userInteractionEnabled = NO; layer = <CABackdropLayer: 0x145a68d0>>
| | | | | | | | | <UIView: 0x147335c0; frame = (0 0; 320 44);
hidden = YES; opaque = NO; autoresize = W+H; userInteractionEnabled = NO; layer =
<CALayer: 0x145f3ab0>>
Free download pdf