随笔分类 - Foundation 框架
摘要:A. 不可变字符串 1 void stringCreate() 2 { 3 //Don't need to release memory by this way 4 NSString *str1 = @"String Sample"; 5 6 NSString *st...
阅读全文
摘要:使用函数改变NSString 1 void changeStr2(NSString **str3) 2 { 3 *str3 = @"789"; 4 } 5 6 int main(int argc, const char * argv[]) { 7 @autoreleasepool ...
阅读全文
摘要:底层封装是使用了typedef定义的结构体typedef struct _NSString{xxxxxx} NSString;1. NSRange 结构体#注意结构体不是对象3种定义方式1 typedef struct _NSRange{2 int locat...
阅读全文

浙公网安备 33010602011771号