如何更改越狱设备编程的主屏幕

时间:2014-12-01 10:51:45

标签: ios jailbreak tweak logos

我是iOSOpenDev的新手。我想在我的越狱设备上更改主屏幕。我使用iOSOpenDev和Logos调整来实现这个

%hook SBUIController

- (void)finishLaunching
{    
    SBUIController *uicontroller = (SBUIController *)[%c(SBUIController) sharedInstance];

    // Get _contentView & _iconsView from SBUIController
    UIView* _contentView = [uicontroller valueForKey:@"_contentView"];
    UIView* _iconsView = [uicontroller valueForKey:@"_iconsView"];

    // Hidden _iconsView
    _iconsView.hidden = YES;

    // Add Sphere View
    SphereViewManager *sphere = [[SphereViewManager alloc] initWithFrame:[UIScreen mainScreen].bounds];
    sphere.frame = [UIScreen mainScreen].bounds;
    sphere.tag = 20141201;
    [_contentView addSubview:sphere];
}

重新启动SpringBoard后,我的主屏幕已加载。但是,当我点击一个应用程序启动,然后我按下HOME按钮,我的设备返回到旧的主屏幕。如何防止我的HOME屏幕返回旧视图?

0 个答案:

没有答案