iOS开发细节 | 通知怎么写?

前言 工作的这一年多时间里我见识了各种通知的写法,今天总结一下。 第一种: 最纯粹的,如: 1 [[NSNotificationCenter defaultCenter] postNotificationName:@ "aNotification"  object:nil]; 第二种: 在PCH文件中写宏,如: 1 #define aNotification @ "aNotification" 第
相关文章
相关标签/搜索