theos tweak imports custom classes

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:
insert image description here

  1. Modify the Makefile:
    project name_FILES = Tweak.x people/*.m
  2. Import in Tweak.x, #import "people.h", that's it!

Case 2, using mokeyDev’s tweak project:
the directory structure is generally as follows:
insert image description here
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"

Guess you like

Origin blog.csdn.net/u010775335/article/details/127870512