|
[Objective-C] Make Categories Loadable |
|
 |
// first define the macro below in .PCH file of your project
#define MAKE_CATEGORIES_LOADABLE(UNIQUE_NAME) @interface FORCELOAD_##UNIQUE_NAME : NSObject @end @implementation FORCELOAD_##UNIQUE_NAME @end
// call definited macro in you .m category files, out the implementation.
MAKE_CATEGORIES_LOADABLE(MY_UNIQUE_NAME)
|
|
|
|
|
|
|
|
Copyright © 1996-2022 Centro Studi Informatica di Danilo Priore. All rights reserved. P.I.10149810581. |
|
|
|