Jump to content

How To %hook 2 Swift Classes


CrazyMind

3 posts in this topic

Recommended Posts

Posted

Hello everyone 

If I want to hook a Swift class for example this class , iLove.iosgods

 

%hook CrazyMind

-(bool) AmIinLove {

return true;

}

%end

%ctor {

%init(CrazyMind = objc_getClass("iLove.iosgods"));

}

/////////////////////////////////////////////////////////////////////////////////

But if I want to hook this class too , iosgods.MyLove 

 

What should i do ?

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines