Sometimes, we need to use a custom class when we use tweak, so how to reference it?
Assuming we have a custom class, people.h/people.m,
there are two cases:
case 1, directly use the official tweak project:
the directory structure is generally as follows:
- Modify the Makefile:
project name_FILES = Tweak.x people/*.m - Import in Tweak.x, #import "people.h", that's it!
Case 2, using mokeyDev’s tweak project:
the directory structure is generally as follows:
directly drag the people.h/people.m file into the MonkeyTweak directory and then
import #import “people.h” in Tweak.xm
In addition:
if your code directory is like this "MonkeyTweak/xxx/people.h"
, then you need to write it like this when importing, #import "xxx/people.h"