hide/show/change stuff on the LS and HS
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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];
  27. }
  28. -(void)saveTapped {
  29. CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), CFSTR("com.yaypixxo.kage/respring"), NULL, NULL, YES);
  30. }
  31. @end