문제

I am creating one app in which i want to detect that iphone is on silent mode or not.if not then how to change ringer mode to (Silent or Vibrate) mode .

도움이 되었습니까?

해결책

You could do this by using private API but your app will be rejected by apple AppStore as per apple policy which doesn't allow private API ,so then if you still wanna do it then you could go for Cydia Store to upload which is a store for rooted(jail broken) apple device's.

다른 팁

There is no way to detect that, some may say you can do by overriding some methods or using private API.

Be careful about overriding the silent mode switch and playing audio. Apple may not like you doing this, depending on the context; if they don't like it, you will fail app review.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top