¡@

Home 

2014/10/15 ¤U¤È 10:04:29

iphone Programming Glossary: avsystemcontroller

Mute/Silence an iOS device programmatically?

http://stackoverflow.com/questions/10371312/mute-silence-an-ios-device-programmatically

an iOS device programmatically I'm trying to mute the device's ringer from within my app but for some reason using AVSystemController like in this answer How to disable iOS System Sounds won't let me silence the device ALL the way down.. it drops it to a.. it drops it to a volume of 1 bar but not completely silent. I know it can be done probably with a private API like AVSystemController and I know that Apple will still approve the app if the user expects this kind of functionality from the app since there..

How to disable iOS System Sounds

http://stackoverflow.com/questions/6284402/how-to-disable-ios-system-sounds

improve this question It is possible to change the system sounds which turns out to be the ringer btw using the AVSystemController. However AVSystemController exists in the private Celestial framework. Since this framework is referenced by UIKit it is.. It is possible to change the system sounds which turns out to be the ringer btw using the AVSystemController. However AVSystemController exists in the private Celestial framework. Since this framework is referenced by UIKit it is still possible to use this.. using private framework api which will get your app rejected without some kind of special permission . short answer AVSystemController sharedAVSystemController setVolumeTo 0 forCategory @ Ringtone answer without having to directly reference Celestial frameork..

How to programmatically silence the ringer or change the ringer tone on iOS5

http://stackoverflow.com/questions/9320725/how-to-programmatically-silence-the-ringer-or-change-the-ringer-tone-on-ios5

the volume of the ringer or change the ringer tone on iOS5 I checked out the Celestial framework but can't instantiate AVSystemController. I don't care if this get's the app rejected in the AppStore as it will never be submitted. iphone objective c cocoa touch.. as it will never be submitted. iphone objective c cocoa touch ios5 ringtone share improve this question Yes. Use AVSystemController . You don't instantiate it. It's a singleton. http code.google.com p iphone dev source browse trunk include include Celestial.. instantiate it. It's a singleton. http code.google.com p iphone dev source browse trunk include include Celestial AVSystemController.h r 136 AVSystemController sharedAVSystemController setVolumeTo 10.0 forCategory @ Ringtone share improve this answer..