Microsoft Word - iOSAppReverseEngineering.docx

(Romina) #1

method [WCContentItemViewTemplateNewSight onLongTouch]?


9.2.8 Get a WCDataItem object from


WCContentItemViewTemplateNewSight


Do you still remember how we’ve got an object of WCDataItem in LLDB? The answer is


getTimelineDataItemOfIndex:. Go back to figure 9-22 to see the callers and arguments of this


method.


As we can see, the caller is the return value of getService:, the argument is the return value


of calcDataItemIndex:, as shown in figure 9-24.


Figure 9-24 Analyze getTimelineDataItemOfIndex:


New problems emerge: How do we call getService: and calcDataItemIndex:? Let’s start


from getService:. From the instruction “MOV R0, R6”, we know the caller is R6; R6 is the return


value of [MMServiceCenter defaultCenter]. The argument is from the return value of


[WCFacade class], as shown in figure 9-25.

Free download pdf