本文介紹了如何以編程方式使鈴聲靜音或更改 iOS5 上的鈴聲的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
限時送ChatGPT賬號..
有沒有辦法在iOS5上降低鈴聲音量或改變鈴聲?
Is there a way to reduce the volume of the ringer or change the ringer tone on iOS5?
我檢查了 Celestial 框架,但無法實例化 AVSystemController.:-(
I checked out the Celestial framework, but can't instantiate AVSystemController. :-(
我不在乎這個 get 是否是 AppStore 中被拒絕的應用,因為它永遠不會被提交.
I don't care if this get's the app rejected in the AppStore as it will never be submitted.
推薦答案
是的.使用 AVSystemController
.你不實例化它.這是一個單例.
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/AVSystemController.h?r=136
[[AVSystemController sharedAVSystemController] setVolumeTo:10.0 forCategory:@"Ringtone"];
這篇關于如何以編程方式使鈴聲靜音或更改 iOS5 上的鈴聲的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!