tweak to change the "custom no older notifications" text introduced in iOS 11
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CNONRootListController.m 1.2KB

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