tweak to change the "custom no older notifications" text introduced in iOS 11
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CNONRootListController.m 1.5KB

4 年前
4 年前
4 年前
4 年前
4 年前
4 年前
4 年前
4 年前
4 年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #include "CNONRootListController.h"
  2. //#import <spawn.h>
  3. @implementation CNONRootListController
  4. - (NSArray *)specifiers {
  5. if (!_specifiers) {
  6. _specifiers = [[self loadSpecifiersFromPlistName:@"Root" target:self] retain];
  7. }
  8. return _specifiers;
  9. }
  10. - (void)respring:(id)sender {
  11. [self.view endEditing:YES];
  12. /*[NSThread sleepForTimeInterval:0.5f];
  13. pid_t pid;
  14. const char* args[] = {"killall", "backboardd", NULL};
  15. posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char* const*)args, NULL);*/
  16. }
  17. - (void)openTwitter {
  18. NSURL *url;
  19. if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tweetbot:"]]) {
  20. url = [NSURL URLWithString:@"tweetbot:///user_profile/Ra1nPix"];
  21. }
  22. else if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"twitterrific:"]]) {
  23. url = [NSURL URLWithString:@"twitterrific:///profile?screen_name=Ra1nPix"];
  24. }
  25. else if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tweetings:"]]) {
  26. url = [NSURL URLWithString:@"tweetings:///user?screen_name=Ra1nPix"];
  27. }
  28. else if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"twitter:"]]) {
  29. url = [NSURL URLWithString:@"twitter://user?screen_name=Ra1nPix"];
  30. }
  31. else {
  32. url = [NSURL URLWithString:@"https://mobile.twitter.com/Ra1nPix"];
  33. }
  34. // [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
  35. [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
  36. }
  37. @end