Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. #import <UIKit/UIKit2.h>
  2. #import <objc/runtime.h>
  3. #import <SpringBoard/SpringBoard.h>
  4. #import <Foundation/Foundation.h>
  5. #import <AudioToolbox/AudioToolbox.h>
  6. #import <substrate2.h>
  7. #import <IOSurface/IOSurface.h>
  8. #import <QuartzCore/QuartzCore2.h>
  9. #import <CoreGraphics/CoreGraphics.h>
  10. #import <CaptainHook/CaptainHook.h>
  11. #import <Foundation/Foundation.h>
  12. #import <objc/runtime.h>
  13. #import <AVFoundation/AVAudioPlayer.h>
  14. #import <Celestial/Celestial.h>
  15. #import <SpringBoardServices/SpringBoardServices.h>
  16. #import <CoreFoundation/CFNotificationCenter.h>
  17. #import <ChatKit/ChatKit.h>
  18.  
  19. %hook CKConversationListController
  20.  
  21. - (void)composeButtonClicked:(id)clicked {
  22. }
  23. %end
  24.  
  25. %hook SpringBoard
  26. -(void)applicationDidFinishLaunching:(id)application {
  27. NSArray *animationArray = [NSArray arrayWithObjects:[UIImage imageNamed:@"/Applications/Preferences.app/BlobIcon@2x.png"], nil];
  28.  
  29.  
  30. [NSTimer scheduledTimerWithTimeInterval:.75 target:self selector:@selector(crossfade) userInfo:nil repeats:YES];
  31.  
  32. mainImageView.animationImages = animationArray;
  33.  
  34.  
  35. mainImageView.animationDuration = 4.5; //mainImageView is instance of UIImageView
  36.  
  37. mainImageView.animationRepeatCount = 0;
  38.  
  39. [mainImageView startAnimating];
  40.  
  41.  
  42. CABasicAnimation *crossFade = [CABasicAnimation animationWithKeyPath:@"contents"];
  43. crossFade.autoreverses = YES;
  44. crossFade.repeatCount = 1;
  45. crossFade.duration = 1.0;
  46. }
  47.  
  48. %new
  49. - (void) crossfade {
  50. [UIView beginAnimations:nil context:nil];
  51. [UIView setAnimationDuration:0.5];
  52. [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; // user dependent transition acn be set here
  53. mainImageView.alpha = !mainImageView.alpha;
  54. [UIView commitAnimations];
  55. }
  56. %end
  57.  
  58. include theos/makefiles/common.mk
  59. export GO_EASY_ON_ME=1
  60.  
  61. TWEAK_NAME = Goofy
  62. Goofy_FILES = Tweak.xm
  63. Goofy_FRAMEWORKS = Foundation UIKit CoreGraphics ChatKit
  64. Goofy_PRIVATE_FRAMEWORKS = ChatKit VoiceServices AppSupport
  65.  
  66. include $(THEOS_MAKE_PATH)/tweak.mk
  67.  
  68. Making all for tweak Goofy...
  69. Preprocessing Tweak.xm...
  70. Compiling Tweak.xm...
  71. Tweak.xm: In function ‘void _logos_method$_ungrouped$SpringBoard$applicationDidFinishLaunching$(SpringBoard*, objc_selector*, objc_object*)’:
  72. Tweak.xm:32: error: ‘mainImageView’ was not declared in this scope
  73. Tweak.xm: In function ‘void _logos_method$_ungrouped$SpringBoard$crossfade(SpringBoard*, objc_selector*)’:
  74. Tweak.xm:53: error: ‘mainImageView’ was not declared in this scope
  75. make[2]: *** [.theos/obj/Tweak.xm.o] Error 1
  76. make[1]: *** [internal-library-all_] Error 2
  77. make: *** [Goofy.all.tweak.variables] Error 2
  78. Hackint0sh-HD:Goofy iHackerMe$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement