【文件属性】:
文件名称:Xcode-Singleton-Templates:Objective-C 的单例模板
文件大小:57KB
文件格式:ZIP
更新时间:2021-06-16 17:03:45
Objective-C
Xcode-Singleton-Templates
这些是 Singleton 类和 TestCase 的模板。 下面显示的代码是将通过的测试用例模板的一部分。
KO2Abc* a = [KO2Abc sharedInstance];
KO2Abc* b = [[KO2Abc alloc] init];
KO2Abc* c = [KO2Abc allocWithZone:nil];
KO2Abc* d = [KO2Abc new];
KO2Abc* e = [[KO2Abc alloc] copy];
KO2Abc* f = [[KO2Abc alloc] mutableCopy];
XCTAssertEqualObjects(a, b);
XCTAssertEqualObjects(a, c);
XCT
【文件预览】:
Xcode-Singleton-Templates-master
----install-templates.sh(734B)
----LICENSE(1KB)
----File Templates()
--------Singleton()
----README.md(1KB)
----uninstall-templates.sh(273B)