ios 5如何用滑块挂钩锁屏通知警报?

时间:2013-04-24 13:10:36

标签: iphone ios notifications jailbreak

全部!

我必须使用滑块挂锁屏幕通知警报?

没有运气:

%hook SBAwayController

    - (BOOL)activateAlertItem:(id)item
    {
        %orig;
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"SBAwayController" message:@"activateAlertItem" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
        [alert show];
        [alert release];
        return YES;
    }

    -(void)_pendAlertItem:(id)item
    {
        %orig;
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"SBAwayController" message:@"_pendAlertItem" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
        [alert show];
        [alert release];
    }

%end

提前致谢

2 个答案:

答案 0 :(得分:1)

我设法通过挂钩SBBulletinModalController / SBBulletinBannerController类,addBulletin方法

来做到这一点

答案 1 :(得分:0)

通过推送通知或本地通知显示锁屏通知。您可以找到相同的大量教程。 Here您将找到apple的本地推送通知编程指南。

相关问题