UILocalNotification play sound from app documents
问题 I know that UILocalNotification supports soundName only from app bundle, but I saw program that plays my recorded sound in Notification, even if program is closed. How to implement it? Any ideas is very important for me.. 回答1: A surefire way to get an NSURL to the application documents directory is like this... NSURL *documentsDirectoryURL = [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]; Then you can get an NSURL reference to