Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下代码振动
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
即使静音开关打开,它也会振动。但是,我不希望它在静音模式下振动。它很烦人。我如何实现它?
您需要检测振铃状态,对吗?如果是这种情况,请检查此问题