SingleObject
Example
@interface Singleton : SingleObject
@end
@implementation Singleton
//注意:init方法只会执行一次
-(instancetype)init
{
self = [super init];
return self;
}
@end
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Installation
SingleObject is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SingleObject'
Author
youlianchun, [email protected]
License
SingleObject is available under the MIT license. See the LICENSE file for more info.