Is there any alternate solution to mute ringer programmatically?

417 Views Asked by At

I'm working on an iphone application which used to mute the phone ringer programmatically.Currently I'm using celestial.framework to mute,but I come across that the apple will reject using private framework.Please anybody give right solution to achieve it.I'm new to iOS development.Thanks

Class avSystemControllerClass = NSClassFromString(@"AVSystemController");
NSString *soundCategory = @"Ringtone";
float newVolumeLevel = 0.0;
0

There are 0 best solutions below