This tool is to onitoring iPhone System vibration mode.The "RBDMuteSwitch" library can not work because it get wrong file path,so i create a new library base on it.And i will ongoing maintenance.
#import "STJMuteSwitch.h"
@interface MainViewController : UIViewController <STJMuteSwitchDelegate>
[[STJMuteSwitch sharedInstance] setDelegate:self];
[[STJMuteSwitch sharedInstance] detectMuteSwitch];
- (void)isMuted:(BOOL)muted
{
if (muted) {
NSLog("Muted");
}
else {
NSLog("Not Muted");
}
}
```