I have created an application. In that, I have to list of audio files and "Set as ringtone" option there. I don't know how to set audio file as ringtone.
            Asked
            
        
        
            Active
            
        
            Viewed 658 times
        
    2 Answers
2
            You cannot. Apple doesn't release an API to export/write ringtones to the operating system. But u can make ur audio as ringtone through itunes
Use iTunes file sharing in your app and copy the ringtone file to the app's documents directory.
Set "Application supports iTunes file sharing" to YES in your info.plist
        Poornima Mishra
        
- 406
 - 2
 - 18
 
1
            
            
        It is not possible in iOS.There is no API for setting ringtone. Apple does this for security and safety reasons But u can make ur audio as ringtone through itunes
Enable "itunes file sharing" in info plist
This will help in that case How to add a ringtone from an application to ringtones of iphone?
        Marolean James
        
- 589
 - 4
 - 7