Objective-C Tips & Trick - Prioregroup.com
[Objective-C] Make Categories Loadable
       
back

// 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-2018 Centro Studi Informatica di Danilo Priore. All rights reserved. P.I.10149810581.
prioregroup.com