From 0e7cc4f6a7fc5bdc7c6ce00f726672111142d05d Mon Sep 17 00:00:00 2001 From: Lavare Date: Wed, 15 Jun 2016 17:05:07 +0800 Subject: [PATCH] improve singleton method implement for inherit --- FastStub/SysHeaders/FSStub.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FastStub/SysHeaders/FSStub.h b/FastStub/SysHeaders/FSStub.h index 7690081..baa799f 100644 --- a/FastStub/SysHeaders/FSStub.h +++ b/FastStub/SysHeaders/FSStub.h @@ -16,7 +16,7 @@ \n\ static dispatch_once_t onceToken;\n\ dispatch_once(&onceToken, ^{\n\ - instance = [FSPlaceHolder new];\n\ + instance = [self new];\n\ });\n\ \n\ return instance;\n\