-
技术
-
OC:objc_setAssociatedObject,把一个对象绑定到另一个对象上,好用,结构简单
-
将NSString转换为正确的JSON格式(Converting NSString to proper JSON format)_电脑培训,用NSString格式写json
-
有变量时用stringWithFormat
-
双引号需要转义\",单引号不用转义
-
xcode内换行时可以在句末加\
-
-
js(知道有就行)
-
typeof 变量:typeof - JavaScript | MDN
-
JS判断相等或者不等于(==、===、!=、!==)运算符_js 不等于判断_段远山的博客-CSDN博客
-
-
cocoapods:public_header_files iOS编译优化--带你深入浅出了解HMap
-
oc @class 标记的类不能做父类,"Attempting to use the forward class 'Game' as superclass of 'MathGame'" in Cocos2d
-
类型转换时确保类型:
#define DynamicCast(x, c) ((c *)([x isKindOfClass:[c class]] ? x : nil))
-