logos

Creating Cydia Logos Tweak, now required respring after installation (How to do)

此生再无相见时 提交于 2019-12-13 13:28:32
问题 I am creating a Logos Tweak for Cydia and i did complete my task, but now i required "Restart SpringBoard" after Installation. Can anybody tell me what i have to do to achieve this like many apps in Cydia store, In which after installation button appears with text "Restart SpringBoard" instead of "Return to Cydia". 回答1: You could do this 2 ways if you are using THEOS, First one (if you do make clean then you will have to redo these steps), Create 2 files in the DEBIAN folder which is located

UIImage may not respond to imageWithContentsofFile

柔情痞子 提交于 2019-12-11 11:58:32
问题 Hi guys I am trying to make a image appear whenever my method is called. Here is my code #import <UIKit/UIKit.h> #import <substrate.h> #import <Foundation/Foundation.h> #import <UIKit/UISaveToCameraRollActivity.h> #import <UIKit/_UIImageViewExtendedStorage.h> #import <UIKit/_UIOnePartImageView.h> #import <UIKit/_UIPrefTableCellPiece.h> #import <UIKit/_UIStretchableImage.h> #import <UIKit/_UISwitchSlider.h> #import <UIKit/_UITableViewCellDeleteConfirmationControl.h> #import <UIKit/UIImage.h>

How to hook NSURLSession methods with theos?

左心房为你撑大大i 提交于 2019-12-09 23:49:42
问题 I created a tweak project using rpetrich's theos and wanted to hook NSURLSession methods but the hooks don't seem to get invoked? Why? This is my Tweak.xm code: %hook NSURLSession - (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request completionHandler:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler { NSLog(@"testhook dataTaskWithRequest:completionHandler:"); return %orig(request, completionHandler); } - (NSURLSessionDataTask *

How to hook NSURLSession methods with theos?

半腔热情 提交于 2019-12-04 20:13:19
I created a tweak project using rpetrich's theos and wanted to hook NSURLSession methods but the hooks don't seem to get invoked? Why? This is my Tweak.xm code: %hook NSURLSession - (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request completionHandler:(void (^)(NSData *data, NSURLResponse *response, NSError *error))completionHandler { NSLog(@"testhook dataTaskWithRequest:completionHandler:"); return %orig(request, completionHandler); } - (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request { NSLog(@"testhook dataTaskWithRequest"); return %orig(request); } %end