简单的theos调整失败

时间:2015-08-22 04:43:52

标签: ios theos

我是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

0 个答案:

没有答案