Skip to content
Guest Big Announcement

Need help with alertview error

Featured Replies

this is the error i need help with.

 

> Making all for tweak test…

==> Preprocessing Tweak.xm…

==> Compiling Tweak.xm (armv7)…

Tweak.xm:13:30: error: property 'view' cannot be found in forward class object

      'AppDelegate'

alert showAlertInWidnow:self.view.window

                        ~~~~ ^

Tweak.xm:28:8: note: forward declaration of class here

@class AppDelegate; 

       ^

1 error generated.

make[3]: *** [/users/mac/test/.theos/obj/debug/armv7/Tweak.xm.fc9f672d.o] Error 1

make[2]: *** [/users/mac/test/.theos/obj/debug/armv7/test.dylib] Error 2

 

make[1]: *** [internal-library-all_] Error 2

  • Author

Show us your tweak.xm (just the alert bit).

%hook AppDelegate
- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { // Popup only once at each launch of the app.
	
	FCAlertView *alert = [[FCAlertView alloc] init];

alert showAlertInWidnow:self.view.window
             withTitle:@"Test"
          withSubtitle:@"Testing. "
       withCustomImage:nil
   withDoneButtonTitle:nil
            andButtons:nil];
return %orig();
}

Updated by Drug

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.