摘要:
网上很多资料都只用一个dispatch_once其实是不严谨的 废话不多说,直接上代码(支持MRC/ARC混编) 头文件:SingletonClass.h // // SingletonClass.h // Singleton // // Created by iospp on 15/12/25. 阅读全文
posted @ 2015-12-25 20:07
iospp
阅读(2298)
评论(0)
推荐(0)
摘要:
NSString *testStr1 = @"a";//常量区 NSString *testStr2 = [NSString stringWithString:@"a"];//常量区 NSString *testStr3 = [NSString stringWithFormat:@"b"];//堆区 阅读全文
posted @ 2015-12-25 00:11
iospp
阅读(278)
评论(0)
推荐(0)
摘要:
1)基本数据类型或者C语言的构造类型(如int float double long struct enum)可直接赋值,示例代码: 2)OC对象类型,release旧对象,retain新对象,示例代码: 阅读全文
posted @ 2015-12-25 00:07
iospp
阅读(227)
评论(0)
推荐(0)

浙公网安备 33010602011771号