1. 程式人生 > >ios 系統聲音

ios 系統聲音

NSFileManager * fileManager = [NSFileManagerdefaultManager];

NSString *path = @"/System/Library/Audio/UISounds/SMS";

    NSError *error = nil;

    NSArray * tempFileList = [[[NSArray alloc] initWithArray:[fileManager contentsOfDirectoryAtPath:path error:&error]] autorelease];

//     AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);

AudioServicesPlaySystemSound(1106);

    NSLog(@"%@++++++%@",tempFileList,error);