2013-04-24 33 views
1

全部!ios 5如何掛鉤鎖屏通知警報與滑塊?

我必須用滑塊掛鉤鎖屏通知警報嗎?

,沒有運氣:

%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 

在此先感謝

回答

1

我已經成功掛鉤SBBulletinModalController/SBBulletinBannerController類,addBulletin方法

0

鎖屏通知要麼通過推送通知或本地notification.you所示可以找到很多教程上是相同的。 Here你會發現蘋果本地和推送通知節目指南。

+0

你好做到這一點!感謝您的回答,但我正在尋找私人API掛鉤 – user2290636 2013-04-24 13:48:36