How to get ringtone list of iPhone programmatically - iphone

I am developing a iPhone alarm app.
I have to display the list of ringtones.
How can I obtain these names?
And then how use these ringtones for alarm?

Apple has set things up so that one cannot use or change the ringtones available programmatically -- see App Store Guidelines . You will need your own files for this.

Related

iPhone: Programmatically store audio as ring tone

I am working on an iPhone application, where i need to store an audio file(which i get from my server) as a ringtone on the iPhone device programmatically. Is it possible to do that? What are the APIs supported for it. And, Does the Appstore allow such apps to be released?
Thanks.
Most probably the user will have to do it himself. You can ease-up a bit this process
for him using iTunes file sharing. See:
How to add a ringtone from an application to ringtones of iphone?
You could also check the code of ringtonesapp.
No, you can't do this. There's no public API for this.
If you're doing this on a jailbroken device, you can just replace one of the default Apple ringtones with your ringtone.

Programmatically changing the iOS lock-screen

I'm building an app which would have to have the ability to show my own views on the iPhone lock screen. I've seen lots of apps which let you customize the lockscreen and so forth and these were App Store apps so i'm guessing it has to possible.
I just can't figure out what to use in the iOS SDK to even try implementing this.
Oh and P.S: same goes for wallpapers—can we change this from inside our app?
It can be changed programmatically (change to SpringBoard), but it won't make the way to the (official) AppStore. So if you want to build an app that can change something like the lock screen wallpaper or the ring tone which you usually need the Settings app for, you have to publish your application via Cydia, not Apple's store.
For a sample code block, see this answer.

Need help to assign ringtones for different contacts

From my application i want to change the following settings of iphone :
I want to set the separate ringtones against individual contacts in iphone.
I want to set ringtone volumes against any contacts
Can I do these from my application?
Please help me to find the procedure as i am a totally newbie to this new technology of iPhone.
Thanks for your help in advance.
Ritz
It's not possible to set/alter ringtone settings via the published iOS SDK (there are most likely "private" methods, but using these will result in your app being rejected), as otherwise any errant application could trivially make irritating changes.
i.e.: Only the user can change the ringtone settings.

how to use iphone ringtone in app

I want to use ringtones of iPhone in my app. Is this possible? Please help on iam stuck on this point,
Thanks
You cannot use or change the ringtones available programatically. Sorry to say that but Apple is damn conservative.
you can access ringtones in the following directory: /Library/Ringtones/

How to programmatically change iPhone settings

It is possible to change iPhone settings from an application?
I want to change settings like enable/disable WIFI, enable/disable vibrations, change ring tone, enable/disable bluetooth, call forwarding, mail accounts, etc. I want to be able to change all settings programmatically. I would appreciate some sample code.
Thanks for any help.
You cannot do this unless your application is run on a jailbroken phone.
You can do some of these items programatically on a non-jailbroken phone. Toggling Bluetooth is discussed here, and it's very easy to get working. Programmatically turn on bluetooth in the iphone sdk?
I am not sure about the other items. Of course you cannot submit this code to the app store, but for personal use it can be very handy.