Class extension implementation must be in the original class, what is the significance? objective-c
仅有的幸福
仅有的幸福 2017-05-02 09:36:52
0
1
739

There is a person class. Write another extension: Person_testExt.h, but only .h file. I added a - (void)run method. But the implementation still has to be in Person.m.
So if you write an extension to NSString, and if you implement this method, does it need to be in the original .m file? So what's the point of expansion?

仅有的幸福
仅有的幸福

reply all(1)
淡淡烟草味

You can use category

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template