AvoidMTLModelCrash
AvoidMTLModelCrash copied to clipboard
How to use the category
How to use the category, could you please give me an example?
Just like this
#import "NSNumber+AvoidMTLModelCrash.h"
int main(int argc, char * argv[])
{
@autoreleasepool {
[NSNumber avoidMTLModelCrash];
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
Thanks for your suggestion!
非常感谢!
It's ugly to do that in main. Why not just add it to the category's +(void)load.