hide/show/change stuff on the LS and HS
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

40 líneas
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