Microsoft Word - iOSAppReverseEngineering.docx

(Romina) #1
| | | | | | | <UIImageView: 0x14725730; frame = (0 -0.5; 320 0.5);
autoresize = W+BM; userInteractionEnabled = NO; layer = <CALayer: 0x1472be40>>
| | | | | | | <MailStatusBarView: 0x146c4110; frame = (69 0; 182
44); opaque = NO; autoresize = BM; layer = <CALayer: 0x146f9f90>>

Let’s repeat the operation to hide UIToolBar:


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

The effect is shown in figure 6-13:


Figure 6-13 UIToolBar is hidden


This time, the button is hidden, which means the button is a subview of UIToolBar. Look


for keyword “button” in subviews of UIToolBar, and we can easily locate UIToolbarButton:


| | | | | | | <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>>
| | | | | | | | | <UILabel: 0x14609610; frame = (40 21.5; 102
13.5); text = ‘3 Unsent Messages’; opaque = NO; userInteractionEnabled = NO; layer =
<_UILabelLayer: 0x146097f0>>
| | | | | | | | | <UILabel: 0x145f3020; frame = (43 8; 96.5
13.5); text = ‘Updated Just Now’; opaque = NO; userInteractionEnabled = NO; layer =
<_UILabelLayer: 0x145f2e50>>
| | | | | | | <UIToolbarButton: 0x14798410; frame = (285 0; 23 44);
opaque = NO; gestureRecognizers = <NSArray: 0x14799510>; layer = <CALayer: 0x14798510>>

Let’s see whether it is “compose” button with the following commands:


cy# [#0x146f62a0 setHidden:NO]
cy# [#0x14798410 setHidden:YES]

The button is hidden as expected, as shown in figure 6-14:

Free download pdf