iOS - 通过调整启动“照片”应用程序?

时间:2013-04-29 07:48:00

标签: ios jailbreak launch tweak cydia-substrate

我想通过越狱调整启动“照片”应用程序(股票苹果)。我已经迷上了跳板,覆盖了我需要的方法,现在我需要启动“照片”应用程序。我的问题是,没有为它设置URL。那我该怎么做?提前致谢! :)

#import <UIKit/UIKit.h>
#import <substrate.h>
#import <SBApplication.h>

@interface UIApplication (ScreenShooter)
//-(void)applicationOpenURL:(id)url;
@end

%hook SBScreenFlash

-(void)stopFlash {
%orig;
//[[UIApplication sharedApplication] applicationOpenURL:[NSURL URLWithString:[NSString stringWithFormat:@"com.apple.mobileslideshow"]]];

SBApplication *app = [[objc_getClass("SBApplicationController") sharedInstance] applicationWithDisplayIdentifier:@"com.apple.mobileslideshow"];
[[objc_getClass("SBUIController") sharedInstance] activateApplicationFromSwitcher: app];
}
%end

0 个答案:

没有答案