Jump to content

cz1993

Senior Member
  • Posts

    1,338
  • Joined

  • Last visited

Posts posted by cz1993

  1. 2 hours ago, mikiyan1978 said:

    %group A

    %hook onesomeclass

    - (void)method {

    //code here

    }

    %end

    %end

     

    %group B

    %hook twosomeclass

    - (void)method {

    //more code here

    }

    %end

    %end

     

     

    %ctor {

       %init(A, onesomeclass = objc_getClass("one.someclass"));

     

       %init(B, twosomeclass = objc_getClass("two.someclass"));

    }

    Show this error

    Error: non-initialized hook group : _ungrouped

  2. 2 hours ago, mikiyan1978 said:

    %group A

    %hook onesomeclass

    - (void)method {

    //code here

    }

    %end

    %end

     

    %group B

    %hook twosomeclass

    - (void)method {

    //more code here

    }

    %end

    %end

     

     

    %ctor {

       %init(A, onesomeclass = objc_getClass("one.someclass"));

     

       %init(B, twosomeclass = objc_getClass("two.someclass"));

    }

    Let me try.. Thx for reply

×
  • 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