Guest User

Untitled

a guest
Jan 4th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. ## Import
  2.  
  3. #import <UIKit/UIKit.h>
  4. #import <libactivator/libactivator.h>
  5. #import <MediaPlayer/MediaPlayer.h>
  6. #import <MediaPlayer/MPMediaItem.h>
  7. #import <CaptainHook/CaptainHook.h>
  8.  
  9. ## Codice (Ho messo solo il codice inerente al problema)
  10.  
  11. MPMusicPlayerController *musicPlayer;
  12.  
  13. musicPlayer = [MPMusicPlayerController iPodMusicPlayer];
  14. MPMediaItem *currentItem = [musicPlayer nowPlayingItem];
  15.  
  16. NSString *s_title = [currentItem valueForProperty: MPMediaItemPropertyTitle];
  17.  
  18. ## MakeFile
  19.  
  20. include theos/makefiles/common.mk
  21.  
  22. TWEAK_NAME = Tweak
  23. Tweak_FILES = Tweak.xm
  24. Tweak_FRAMEWORKS = UIKit MediaPlayer CoreFoundation Foundation
  25. Tweak_LDFLAGS = -lactivator
  26.  
  27. include $(THEOS_MAKE_PATH)/tweak.mk
Add Comment
Please, Sign In to add comment