摘要: 有时候我们需要程序退出后台或者程序在后台返回前台的时候触发一些事件,这时候我们就可以这样写来触发 [[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector()name:UIApplicationDidBecomeActiveNotificationobject:nil];在selector里面添加要触发的事件就可以了,name就是你需要在什么notification触发这个事件 [[NSNotificationCenterdefaultCenter]removeObserver:selfname:UIAppli 阅读全文
posted @ 2013-04-08 17:18 小乐" 阅读(205) 评论(0) 推荐(0) 编辑