29,031
社区成员
发帖
与我相关
我的任务
分享
//本地推送
UILocalNotification*notification = [[UILocalNotification alloc]init];
NSDate * pushDate = [NSDate dateWithTimeIntervalSinceNow:currTempInt];
if (notification != nil) {
notification.fireDate = pushDate;
notification.timeZone = [NSTimeZone defaultTimeZone];
notification.soundName = @"blue.mp3";
notification.alertBody = @"推送消息!!";
notification.applicationIconBadgeNumber = 0;
NSDictionary*info = [NSDictionary dictionaryWithObject:@"notification1" forKey:@"name"];
notification.userInfo = info;
[[UIApplication sharedApplication] scheduleLocalNotification:notification];
NSLog(@"注册通知!!!!!");
}
我现在知道怎么把音乐库的文件导入到自己APP里面了 可是现在在使用这个文件的时候又碰到了问题
notification.soundName = @"blue.mp3";
通知的声音是直接使用工程目录下的文件
但是我的音乐文件在沙盒 这个时候应该怎么办呀