我是Theos的新手,所以我决定尝试从教程中进行简单的调整。调整编译和安装正确,但是当我使用iOS 8.1 SDK在iOS 8.4的iPad mini上进行测试时,它无法正常工作。这是我使用的教程代码的副本:
%hook SBApplicationIcon
-(void)launch
{
NSString *appName = [self displayName];
NSString *message = [NSString stringWithFormat:@"The app %@ has been launched", appName, nil];
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:appName message:message delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert show];
[alert release];
%orig;
}
%end