2012-02-09 4 views
0

誰もがiOS 5ヘッダー内のSBCallAlert.hの代替手段を知っていますか? 着信コールがいつ受信されたかを知る必要があります。私はiOS 4でSBCallAlert、initWithCallを使用していました。iOS 5、SpringBoard、SBCallAlert Alternative

はどんな答えを感謝、

答えて

0

SBCallAlertはiOS5をフレームワークで削除されました。

このような着信番号検出:あなたがここからMPIncomingPhoneCallControllerについての情報を見つけることができます

%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 

を:(cydia dev) Call Answering Screen in iPhone