Fork me on GitHub
摘要: 1 #import 2 3 int main(int argc, const char * argv[]) { 4 @autoreleasepool { 5 6 //字典的使用 7 8 //创建字典对象 9 NSDictionary * a1 = [NSDictionary ... 阅读全文
posted @ 2015-08-28 23:04 DengHuiCheng 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 一 .字典的定义和基本使用(NSDictionary和NSMutableDictionary)二.集合的定义和基本使用(NSSet和NSMutableSet)三.快速遍历的方法(对数组,字典,集合的快速遍历) 四.oc中的数组排序(类似于冒泡排序的方法) 数组默认排序方法(升序) 阅读全文
posted @ 2015-08-28 22:57 DengHuiCheng 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1 #import 2 3 4 #import "Student.h" 5 6 int c =200; 7 int main(int argc, const char * argv[]) { 8 @autoreleasepool { 9 /* 10 ----------------------------------... 阅读全文
posted @ 2015-08-28 22:18 DengHuiCheng 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 一.Block块语法的定义及使用方法 1.四种常见形式(类似于函数指针) 2.block访问范围 1>block可以访问外部变量 2>默认情况下不能修改局部变量,但是给局部变量加__block关键字,这个局部变量就可以在block内部修改. 3>block可以访问全局变量,并且可以修改全局变量 3.... 阅读全文
posted @ 2015-08-28 21:58 DengHuiCheng 阅读(125) 评论(0) 推荐(0) 编辑