摘要: 在函数声明中,使用Block(在c#里,应该叫匿名委托),在处理简单事件时,显得十分的方便,先看一段代码://在.h中定义函数声明-(void)processJsonObject:(id) obj atIndex:(NSInteger)index DictionaryObjectUsingBlock:(void (^)(id key, id value))dictionaryHandler NS_AVAILABLE(10_6, 4_0);//在.m中定义实现-(void)processJsonObject:(id) obj atIndex:(NSInteger)index Dictionary 阅读全文
posted @ 2013-01-24 22:22 静候良机 阅读(1446) 评论(0) 推荐(0) 编辑