Jump to content

How to do SCLAlertView in a theos tweak like this?


Go to solution Solved by Rook,

6 posts in this topic

Recommended Posts

Posted

Hello im new in theos tweak creator and i download Kirb theos for create tweaks with more options , but i don't know how to do a AlertView like this :

 

successScreenshot.png

 

Is a SCLAlertView in swift and i see this in some tweaks and i would like to know how to implement this in my project (theos tweak)

 

Thanks.

 

(scuisme for my english because im writing this without any traductor)

Posted

It's inside the page of the alert. The instructions on how to implement it.

Posted

It's inside the page of the alert. The instructions on how to implement it.

Thanks Dida but i don't know where is my Podfile in theos for install it

  • Solution
Posted (edited)

Thanks Dida but i don't know where is my Podfile in theos for install it

Ah, I guess I will make a tutorial soon on how to integrate this with theos.

 

@@extractor304

 


 

So first of all, you will need the headers from GitHub. Download them and add them in /theos/include/SCLAlertView/

 

Next, start a new project and then open your Makefile and add:

 

 

ARCHS = armv7 arm64

CFLAGS = -fobjc-arc # ARC is needed for SCLAlertView

include theos/makefiles/common.mk

TWEAK_NAME = YOURTWEAKNAMEHERE
YOURTWEAKNAMEHERE_FILES = Tweak.xm $(shell find $(THEOS)/include/SCLAlertView -name '*.m')
YOURTWEAKNAMEHERE_FRAMEWORKS = UIKit MessageUI Social QuartzCore CoreGraphics Foundation AVFoundation Accelerate GLKit AudioToolbox
YOURTWEAKNAMEHERE_LDFLAGS += -Wl,-segalign,4000

Then in your Tweak.xm:

#import <SCLAlertView/SCLAlertView.h> // Imports the popup headers.

%hook UnityAppController

- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { // Popup only once at each launch of the app.

    SCLAlertView *alert = [[SCLAlertView alloc] initWithNewWindow];
    
    [alert showSuccess: @"Title here"// Success, Error, Notice, Warning, Info, Edit, Custom, Waiting
              subTitle: @"Subtitle here"
      closeButtonTitle: @"Close button"
              duration: 0.0f];
		return %orig;
}
%end

Compile and it should work. :)

Updated by DiDA
Posted

Ah, I guess I will make a tutorial soon on how to integrate this with theos.

 

@@extractor304

 


 

So first of all, you will need the headers from GitHub. Download them and add them in /theos/include/SCLAlertView/

 

Next, start a new project and then open your Makefile and add:

 

 

ARCHS = armv7 arm64

CFLAGS = -fobjc-arc # ARC is needed for SCLAlertView

include theos/makefiles/common.mk

TWEAK_NAME = YOURTWEAKNAMEHERE
YOURTWEAKNAMEHERE_FILES = Tweak.xm $(shell find $(THEOS)/include/SCLAlertView -name '*.m')
YOURTWEAKNAMEHERE_FRAMEWORKS = UIKit MessageUI Social QuartzCore CoreGraphics Foundation AVFoundation Accelerate GLKit AudioToolbox
YOURTWEAKNAMEHERE_LDFLAGS += -Wl,-segalign,4000

Then in your Tweak.xm:

#import <SCLAlertView/SCLAlertView.h> // Imports the popup headers.

%hook UnityAppController

- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { // Popup only once at each launch of the app.

    SCLAlertView *alert = [[SCLAlertView alloc] initWithNewWindow];
    
    [alert showSuccess: @"Title here"// Success, Error, Notice, Warning, Info, Edit, Custom, Waiting
              subTitle: @"Subtitle here"
      closeButtonTitle: @"Close button"
              duration: 0.0f];
		return %orig;
}
%end

Compile and it should work. :)

Wow , thank you Dida you are awesome haha

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • Crown Raiders: Hero RPG v1.0.25 [ +2 Cheats ] Never Die
      Modded/Hacked App: Crown Raiders: Hero RPG By DFW Games GmbH
      Bundle ID: com.DFWGames.CrownRaiders
      App Store Link: https://apps.apple.com/us/app/crown-raiders-hero-rpg/id6814522939?uo=4

      🤩 Hack Features

      - Never Die
      - Max Damage
      • 0 replies
    • Crown Raiders: Hero RPG v1.0.25 [ +2 jailed ] Never Die
      Modded/Hacked App: Crown Raiders: Hero RPG By DFW Games GmbH
      Bundle ID: com.DFWGames.CrownRaiders
      App Store Link: https://apps.apple.com/us/app/crown-raiders-hero-rpg/id6814522939?uo=4

      🤩 Hack Features

      - Never Die
      - Max Damage
      • 0 replies
    • Tribe Rush: Offline War Games v1.0.1 [ +3 Cheats ] Max Amber
      Modded/Hacked App: Tribe Rush: Offline War Games By TAIGA TEKNOLOJI ANONIM SIRKETI
      Bundle ID: com.grouptaiga.triberush
      App Store Link: https://apps.apple.com/us/app/tribe-rush-offline-war-games/id6827934325?uo=4

      🤩 Hack Features

      - Max Amber
      - Never Die
      - Max Damage
      • 0 replies
    • Tribe Rush: Offline War Games v1.0.1 [ +3 jailed ] Max Amber
      Modded/Hacked App: Tribe Rush: Offline War Games By TAIGA TEKNOLOJI ANONIM SIRKETI
      Bundle ID: com.grouptaiga.triberush
      App Store Link: https://apps.apple.com/us/app/tribe-rush-offline-war-games/id6827934325?uo=4

      🤩 Hack Features

      - Max Amber
      - Never Die
      - Max Damage
      • 0 replies
    • Idle Truck Tycoon: Pixel City v0.1.4 [ +1 Cheats ] Currency Max
      Modded/Hacked App: Idle Truck Tycoon: Pixel City By Makani Studio
      Bundle ID: truck.tycoon.pixelcity
      App Store Link: https://apps.apple.com/us/app/idle-truck-tycoon-pixel-city/id6825004652?uo=4

      🤩 Hack Features

      - Add All Currency
      • 0 replies
    • Idle Truck Tycoon: Pixel City v0.1.4 [ +1 Jailed ] Currency Max
      Modded/Hacked App: Idle Truck Tycoon: Pixel City By Makani Studio
      Bundle ID: truck.tycoon.pixelcity
      App Store Link: https://apps.apple.com/us/app/idle-truck-tycoon-pixel-city/id6825004652?uo=4

      🤩 Hack Features

      - Add All Currency
      • 0 replies
    • Rewild: Ecosystems Tycoon v1.0.5 [ +1 Cheats ] Currency Max
      Modded/Hacked App: Rewild: Ecosystems Tycoon By HOT SIBERIANS LTD
      Bundle ID: com.hotsiberians.rewild.tycoon.restore.ecosystems
      App Store Link: https://apps.apple.com/us/app/rewild-ecosystems-tycoon/id6760185835?uo=4

      🤩 Hack Features

      - Add All Currency
      • 0 replies
    • Rewild: Ecosystems Tycoon v1.0.5 [ +1 Jailed ] Currency Max
      Modded/Hacked App: Rewild: Ecosystems Tycoon By HOT SIBERIANS LTD
      Bundle ID: com.hotsiberians.rewild.tycoon.restore.ecosystems
      App Store Link: https://apps.apple.com/us/app/rewild-ecosystems-tycoon/id6760185835?uo=4

      🤩 Hack Features

      - Add All Currency
      • 0 replies
    • Bunsik Guardians +6 Jailed Cheats
      Modded/Hacked App: Bunsik Guardians By Leon Corp.
      Bundle ID: com.leoncorpcore.bunsik
      App Store Link: https://apps.apple.com/us/app/bunsik-guardians/id6826720018?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier
      - Freeze Enemies
      - Unlock All Heroes
      - All Stages Open
      - No ADS

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles / VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 8: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A
      • 0 replies
    • TtukTtak Nyang: Idle Cat Forge +5 Jailed Cheats
      Modded/Hacked App: TtukTtak Nyang: Idle Cat Forge By Leon Corp.
      Bundle ID: com.leoncorpcore.purrsmith
      App Store Link: https://apps.apple.com/us/app/ttukttak-nyang-idle-cat-forge/id6829974345?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier
      - Currency Multiplier
      - Freeze Currencies
      - No ADS
       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles / VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 8: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A
      • 0 replies
    • Abyss Rush: Sub Survival RPG +7 Jailed Cheats
      Modded/Hacked App: Abyss Rush: Sub Survival RPG By Leon Corp.
      Bundle ID: com.leoncorpcore.deepsea
      App Store Link: https://apps.apple.com/us/app/abyss-rush-sub-survival-rpg/id6833725000?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier
      - No Ability Coolodwn
      - Currency Multiplier 
      - XP Multiplier 
      - Free Chest & Loot
      - No ADS

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles / VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 8: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A
      • 0 replies
    • Power Rangers: Legacy Wars +2 Jailed Cheats
      Modded/Hacked App: Power Rangers: Legacy Wars By nWay Inc.
      Bundle ID: com.nway.powerrangerslegacywars
      App Store Link: https://apps.apple.com/us/app/power-rangers-legacy-wars/id1204075112?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles / VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 8: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A
      • 15 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines