//注册消息中心
[[NSNotificationCenterdefaultCenter] addObserver:selfselector:@selector(passData:)name:@"music"object:nil];
//消息中心传旨回调方法
- (void)passData:(NSNotification *)notification{
NSDictionary *dic = [notification userInfo];
_dataModel = [LoadModelloadModelWithDicData:dic];
//消息中心传值
// toolBar.hidden = [dic valueForKey:@"mark"];
self.toolBar.titleLable.text = [dicvalueForKey:@"ringtoneName"];
NSURL *url = [NSURLURLWithString:[dic valueForKey:@"imageName"]];
[self.toolBar.imgViewsd_setImageWithURL:url placeholderImage:nil];
}
// 从其他控制器传值
NSDictionary *dic = [NSDictionarydictionaryWithObjectsAndKeys:model.imageName,@"imageName",model.ringtoneName,@"ringtoneName",model.fileName,@"fileName",model.time,@"time",nil];
[[NSNotificationCenterdefaultCenter] postNotificationName:@"music"object:niluserInfo:dic];