全部 !
我必须用滑块挂钩锁屏通知警报什么类?
没有运气:
%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
提前致谢