iOS 发布带有数据的通知
示例
迅速
let userInfo: [String: AnyObject] = ["someKey": myObject]
NSNotificationCenter.defaultCenter().postNotificationName("TestNotification", object: self, userInfo: userInfo)目标C
NSDictionary *userInfo = [NSDictionary dictionaryWithObject:myObject forKey:@"someKey"]; [[NSNotificationCenter defaultCenter] postNotificationName: @"TestNotification" object:nil userInfo:userInfo];
热门推荐
10 祝寿时祝福语简短精辟
11 口才课期末祝福语简短
12 教师同事升职祝福语简短
13 送去考试祝福语简短英文
14 虎年开新车祝福语简短
15 学生开心成语祝福语简短
16 老师开工仪式祝福语简短
17 写给男生简短的祝福语
18 店家搬家祝福语大全简短