@Jessica, you cannot do this, bcos this is limited. if you want to try it in your application, your application may be rejected in the application store.
So, using public APIs, this is not possible.
You found the link using private APIs that are not documented or are guaranteed to work as you expected. If you try to release an App Store application that calls a private API, it will be automatically rejected.
if you want to check if it is quiet or not, use below code,
-(BOOL)silenced { #if TARGET_IPHONE_SIMULATOR
By declaring this right in the view controller, you simply check
if ([self silenced]) { NSLog(@"silenced"); else { NSLog(@"not silenced"); }
Mehul
source share