我想实现一个 越狱情况下的悬浮框
写一个 tweak 针对SpringBoard.app
%hook SpringBoard
-(void)applicationDidFinishLaunching:(id)application
{
UIWindow *localPortraitWindow;
localPortraitWindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
[localPortraitWindow setBackgroundColor:[UIColor blackColor]];
[localPortraitWindow makeKeyAndVisible];
%log;
%orig;
}
但是编译下来 killall SpringBoard 没有发现有我们创建的localPortraitWindow
cy# [[UIApplication sharedApplication] windows] 依然没有 我们创建的UIWindow
求解答~~~~