문제

I am making a tweak which changes some things in a game.
I am trying to hook with OpenMenu to make it display an alert asking if The user want to change revert the game back to normal or if the user wants to continue to settings

But at line 88: I'm always getting this erroralertView was not declared in this scope

The codes are here

http://pastebin.com/Rz8PqG9p

Pls help me here, I did not have this erie when I didn't try to add another Alert

도움이 되었습니까?

해결책

It looks like the parameter is named actionSheet not alertView. I guess you can change that easily.

...
- (void)alertView:(UIAlertView *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
    if ((alertView.tag == 1)) {
        if (buttonIndex == 0)
        {    
...
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top