0
任何人都知道iOS 5頭文件中的SBCallAlert.h的替代方案嗎? 我需要知道什麼時候收到來電,並且之前不做任何操作。我曾經在iOS 4中用SBCallAlert,initWithCall來完成它。iOS 5,SpringBoard,SBCallAlert替代方案
感謝任何答案,
任何人都知道iOS 5頭文件中的SBCallAlert.h的替代方案嗎? 我需要知道什麼時候收到來電,並且之前不做任何操作。我曾經在iOS 4中用SBCallAlert,initWithCall來完成它。iOS 5,SpringBoard,SBCallAlert替代方案
感謝任何答案,
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
:(cydia dev) Call Answering Screen in iPhone