我怎样才能使这个方法工作吗? - How can I make this method work?

- 此内容更新于:2016-02-03
主题:

我想钩Applist本地流程,所以我不想修改标题,但我不知道怎么办?(在这里我想让Applist钩)这样的工作吗?提前谢谢!

原文:

I want to hook Applist to a native processes, so I do not want to modify the headers, but I am not sure how?

#import "XXX.h"

@class XXX, XXX, XXX (I want Applist to hook in here)

Could something like this work?

- (id)initWithInterface:(ALApplicationTableDataSource *dataSource)

Thanks in advance!

解决方案:
我不确定我完全理解你的问题,但你不能把一个类别的“本地过程”要修改吗?在类别你刚刚覆盖的方法
原文:

I'm not sure if I fully understand your question, but couldn't you just make a category of the 'native process' you want to modify? In the category you'd just overwrite the method you like

楼主:你可以使用一个例子吗?当我说家乡我的意思是一个iOS应用程序设置应用。

(原文:Can you use an example please? When I say native I mean an iOS application like the settings app.)

网友:我认为你需要进一步指定你的问题。我们在代码级别吗?如果是,请提供一个类的名称。

(原文:I think you need to specify your problem further. Are we talking on code level here? If so, please provide a name of a class or something.)

楼主:简而言之,我想埋藏Applist类设置应用程序中。我找到了一些方法,但是我认为这是最复杂的…我在尝试有趣的“PSListController”在第一个测试中,从那里我将添加额外的功能。

(原文:Well put simply, I want to imbed the Applist class within the settings application. I found a few methods to call, but I think this will be the least complicated... I am interesting in trying out "PSListController" for the first test, from there I will add extra functions.)