hide/show/change stuff on the LS and HS https://github.com/viggou/Kage
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.

40 lines
1.2KB

  1. #include "KgeRootListController.h"
  2. @implementation KgeRootListController
  3. - (NSArray *)specifiers {
  4. if (!_specifiers) {
  5. _specifiers = [self loadSpecifiersFromPlistName:@"Root" target:self];
  6. }
  7. return _specifiers;
  8. }
  9. -(void)openTwitter {
  10. NSURL *url;
  11. if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tweetbot:"]]) {
  12. url = [NSURL URLWithString:@"tweetbot:///user_profile/Ra1nPix"];
  13. }
  14. else if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"twitterrific:"]]) {
  15. url = [NSURL URLWithString:@"twitterrific:///profile?screen_name=Ra1nPix"];
  16. }
  17. else if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tweetings:"]]) {
  18. url = [NSURL URLWithString:@"tweetings:///user?screen_name=Ra1nPix"];
  19. }
  20. else if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"twitter:"]]) {
  21. url = [NSURL URLWithString:@"twitter://user?screen_name=Ra1nPix"];
  22. }
  23. else {
  24. url = [NSURL URLWithString:@"https://mobile.twitter.com/Ra1nPix"];
  25. }
  26. [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
  27. }
  28. -(void)saveTapped {
  29. CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), CFSTR("com.yaypixxo.kage/respring"), NULL, NULL, YES);
  30. }
  31. @end