Advertisement
Guest User

Untitled

a guest
Nov 10th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %ctor {
  2. if ([NSBundle.mainBundle.bundleIdentifier isEqualToString:@"com.apple.springboard"]) {
  3.   [OBJCIPC registerIncomingMessageFromAppHandlerForMessageName:@"respringnow"  handler:^NSDictionary *(NSDictionary *message) {
  4.      [[objc_getClass("FBSystemService") sharedInstance] exitAndRelaunch:1];
  5.     return nil;
  6. }]; }
  7. return; }
  8. /////////////////////
  9. [OBJCIPC sendMessageToSpringBoardWithMessageName:@"respringnow" dictionary:@{ @"respring": @"now" } replyHandler:^(NSDictionary *response) {
  10.     NSLog(@"Received reply from SpringBoard: %@", response);
  11.   }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement