tweak to change the "custom no older notifications" text introduced in iOS 11
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

43 linhas
1.4KB

  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)saveTapped {
  11. [self.view endEditing:YES];
  12. CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), CFSTR("com.yaypixxo.cnon/respring"), NULL, NULL, YES);
  13. }
  14. - (void)openTwitter {
  15. NSURL *url;
  16. if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tweetbot:"]]) {
  17. url = [NSURL URLWithString:@"tweetbot:///user_profile/Ra1nPix"];
  18. }
  19. else if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"twitterrific:"]]) {
  20. url = [NSURL URLWithString:@"twitterrific:///profile?screen_name=Ra1nPix"];
  21. }
  22. else if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tweetings:"]]) {
  23. url = [NSURL URLWithString:@"tweetings:///user?screen_name=Ra1nPix"];
  24. }
  25. else if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"twitter:"]]) {
  26. url = [NSURL URLWithString:@"twitter://user?screen_name=Ra1nPix"];
  27. }
  28. else {
  29. url = [NSURL URLWithString:@"https://mobile.twitter.com/Ra1nPix"];
  30. }
  31. // [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
  32. [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
  33. }
  34. @end