I am implementing Music Player application in iOS platform. Here I am storing and retrieving the media contents using Documents directory. So I can't able to access the 'Documents Directory' when iPhone is getting locked with passcode. I referred Apple developer library, they said the Encryption & Decryption is comes under the accessing the file contents from documents directory. So if device is getting locked the Decryption key is Destroyed. Here I have attached the Screen shot of Problem Description. I was stuck with this problem last 2 months. Pls give me any other ways to access the Documents directory at locked state. Not Only Media , Any other content*.
Thanks in Advance.

Apple Developer Site: https://developer.apple.com/library/mac/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html
You need to specify the file protection level as an option when you write your files. Example:
In this,
someDatais an NSData representation of the data you want to write to disk,filePathis the string path where you want to save the file.Read the documentation on
NSDataWritingOptionsin the NSData Class Reference for more encryption options.