iOS开发 创建单例模式时间:2023-03-09 07:59:09 + (id)defaultNSObjectName { static id defaultNSObjectName = nil; static BOOL token = NO; if (!token) { token = YES; defaultNSObjectName = [[NSObject alloc] init]; } return defaultNSObjectName; }