Home > Mobile >  Practical application Aspects, prompt unclare selector, running tips, find no selector
Practical application Aspects, prompt unclare selector, running tips, find no selector

Time:10-13

Got a Aspects of demo, why @ the selector (loadView:) when you will be prompted unclare selector? ViewController in loadView this method, a classmate can help solve?
Annotation part can hold AOP success;

CodePudding user response:

You write that has the following several problems:
First, since the Aspect library is Aspect oriented programming, you will be in loadView hook method to write in + load method is inappropriate,
Second, to be cautious with + load method or not, too much will affect the processing content in + load method of App startup time,

Your App can be used in the hook method in the Appdelegate to unified management,

  •  Tags:  
  • iOS
  • Related