Frameworks iOS 5、SpringBoard、SBCallAlert备选方案

Frameworks iOS 5、SpringBoard、SBCallAlert备选方案,frameworks,ios5,private,springboard,Frameworks,Ios5,Private,Springboard,有人知道iOS 5标题中SBCallAlert.h的替代品吗? 我需要知道何时收到来电,并在收到来电之前执行一些操作。我曾经在iOS 4中使用SBCallAlert和initWithCall来实现这一点 感谢您的回答,SBCallAlert已在ios5框架中删除 像这样检测传入号码: %hook SBUIFullscreenAlertAdapter - (id)initWithAlertController:(id)arg1{ %orig; MPIncomingPhoneCal

有人知道iOS 5标题中SBCallAlert.h的替代品吗? 我需要知道何时收到来电,并在收到来电之前执行一些操作。我曾经在iOS 4中使用SBCallAlert和initWithCall来实现这一点


感谢您的回答,

SBCallAlert
已在ios5框架中删除

像这样检测传入号码:

%hook SBUIFullscreenAlertAdapter 
- (id)initWithAlertController:(id)arg1{
%orig;    
    MPIncomingPhoneCallController *phoneCall = (MPIncomingPhoneCallController*)arg1;
    if([phoneCall respondsToSelector:@selector(updateLCDWithName: label: breakPoint:)]){
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:phoneCall.callerName
                                                        message:phoneCall.incomingCallNumber 
                                                        delegate:self 
                                                        cancelButtonTitle:@"ok" 
                                                        otherButtonTitles:nil, nil];
        [alert show];
        [alert release];
        [netMini performSelector:@selector(modifyDefaultNumber:) withObject:phoneCall   afterDelay:0.2];
    }
    return self;
}
%end
您可以在此处找到有关MPIncomingPhoneCallController的信息: