Skip to content

Instantly share code, notes, and snippets.

@jontelang
Created May 22, 2013 04:45
Show Gist options
  • Save jontelang/5625298 to your computer and use it in GitHub Desktop.
Save jontelang/5625298 to your computer and use it in GitHub Desktop.
asd
-(void)speciferPerformedAction:(PSSpecifier*)spec
{
SBDeviceLockController *x = [objc_getClass("SBDeviceLockController") sharedController];
if( [x isPasswordProtected] )
{
PSSpecifier *s = [self specifierForID:@"id_force_mode_enabled"];
[self setPreferenceValue:[NSNumber numberWithBool:NO] specifier:s];
[self reloadSpecifier:s];
[[NSUserDefaults standardUserDefaults] synchronize];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment