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.

  • 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

    • Castle Crush-Match 3 v2.25.0 [ +6 Jailed ] Auto Win
      Modded/Hacked App: Castle Crush-Match 3 By KIWI MIBO NETWORK TECHNOLOGY CO.,LIMITED
      Bundle ID: com.mibo.castlecrush.apple
      iTunes Store Link: https://apps.apple.com/us/app/castle-crush-match-3/id1663431964?uo=4


      Hack Features

      - Coins

      - Lives

      - Stars

      - Moves Freeze

      - Booster

      - Auto Win [ Just Hit Target ]


      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Like
      • 25 replies
    • Castle Crush-Match 3 v2.25.0 [ +6 Cheats ] Auto Win
      Modded/Hacked App: Castle Crush-Match 3 By KIWI MIBO NETWORK TECHNOLOGY CO.,LIMITED
      Bundle ID: com.mibo.castlecrush.apple
      iTunes Store Link: https://apps.apple.com/us/app/castle-crush-match-3/id1663431964?uo=4


      Hack Features

      - Coins

      - Lives

      - Stars

      - Moves Freeze

      - Booster

      - Auto Win [ Just Hit Target ]


      For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
        • Informative
        • Agree
        • Like
      • 32 replies
    • Squishmallows Match v1.0.5 [ +2 Cheats ] Auto Win
      Modded/Hacked App: Squishmallows Match By East Side Games Inc
      Bundle ID: com.eastsidegames.squishmallows
      App Store Link: https://apps.apple.com/ph/app/squishmallows-match/id6450057167?uo=4

       

      🤩 Hack Features

      - Auto Win
      - Lives [ 0 Play Unlimited ]

        • Like
      • 12 replies
    • Squishmallows Match v1.0.5 [ +2 Jailed ] Auto Win
      Modded/Hacked App: Squishmallows Match By East Side Games Inc
      Bundle ID: com.eastsidegames.squishmallows
      App Store Link: https://apps.apple.com/ph/app/squishmallows-match/id6450057167?uo=4
       

      🤩 Hack Features

      - Auto Win
      - Lives [ 0 Play Unlimited ]

        • Like
      • 17 replies
    • Piggy Kingdom - Match 3 Games v2.3.0 [ +6 Cheats ] Currency Max
      Modded/Hacked App: Piggy Kingdom - Match 3 Games By OLLEYO PTE. LTD.
      Bundle ID: com.olleyo.piggy.match
      iTunes Store Link: https://apps.apple.com/us/app/piggy-kingdom-match-3-games/id1635337354?uo=4


      🚀 Hack Features

      - Coins

      - Lives

      - Build Coins

      - Moves

      - Booster

      - Color Move Only [ Without Matching Move Anywhere ]


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
        • Thanks
        • Like
      • 27 replies
    • Piggy Kingdom - Match 3 Games v2.3.0 [ +6 Jailed ] Currency Max
      Modded/Hacked App: Piggy Kingdom - Match 3 Games By OLLEYO PTE. LTD.
      Bundle ID: com.olleyo.piggy.match
      iTunes Store Link: https://apps.apple.com/us/app/piggy-kingdom-match-3-games/id1635337354?uo=4


      🚀 Hack Features

      - Coins

      - Lives

      - Build Coins

      - Moves

      - Booster

      - Color Move Only [ Without Matching Move Anywhere ]


      🍏 Jailbreak iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
        • Informative
        • Agree
        • Like
      • 28 replies
    • Jolly Match 3 - Puzzle Game v1.0.2047 [ +5 Cheats ] Auto Win
      Modded/Hacked App: Jolly Match 3 - Puzzle Game By Jollyco LLC
      Bundle ID: com.jollyco.jollybattlematch3
      App Store Link: https://apps.apple.com/us/app/jolly-match-3-puzzle-game/id1554274735?uo=4


      🤩 Hack Features

      - Auto Win

      - Coins

      - Stars

      - Lives

      - Booster
        • Like
      • 5 replies
    • Jolly Match 3 - Puzzle Game v1.0.2047 [ +5 Jailed ] Auto Win
      Modded/Hacked App: Jolly Match 3 - Puzzle Game By Jollyco LLC
      Bundle ID: com.jollyco.jollybattlematch3
      App Store Link: https://apps.apple.com/us/app/jolly-match-3-puzzle-game/id1554274735?uo=4


      🤩 Hack Features

      - Auto Win

      - Coins

      - Stars

      - Lives

      - Booster
        • Like
      • 5 replies
    • Candy Pop Story : Match 3 v1.28.0916 [ +3 Cheats ] Auto Win
      Modded/Hacked App: Candy Pop Story : Match 3 By F.O.G LIMITED
      Bundle ID: com.gamoper.candysweetstory.ios
      App Store Link: https://apps.apple.com/us/app/candy-pop-story-match-3/id6670773988?uo=4


      🤩 Hack Features

      - Auto Win
      - Coins
      - Moves
      -
        • Thanks
      • 11 replies
    • Candy Pop Story : Match 3 v1.28.0916 [ +3 Jailed ] Auto Win
      Modded/Hacked App: Candy Pop Story : Match 3 By F.O.G LIMITED
      Bundle ID: com.gamoper.candysweetstory.ios
      App Store Link: https://apps.apple.com/us/app/candy-pop-story-match-3/id6670773988?uo=4
       

      🤩 Hack Features

      - Auto Win
      - Coins
      - Moves
        • Winner
        • Like
      • 10 replies
    • Words of Wonders: Crossword v5.2.21 [ +8 Cheats ] Auto Win
      Modded/Hacked App: Words of Wonders: Crossword By FUGO BILISIM TEKNOLOJILERI VE YAZILIM TICARET ANONIM SIRKETI
      Bundle ID: com.fugo.wow
      App Store Link: https://apps.apple.com/us/app/words-of-wonders-crossword/id1369521645?uo=4


      🤩 Hack Features

      - Auto ADS OFF

      - Auto Win

      - Gems

      - w Coins

      - Hints

      - Hammer

      - Rocket
        • Thanks
        • Winner
        • Like
      • 7 replies
    • Words of Wonders: Crossword v5.2.21 [ +8 Jailed ] Auto Win
      Modded/Hacked App: Words of Wonders: Crossword By FUGO BILISIM TEKNOLOJILERI VE YAZILIM TICARET ANONIM SIRKETI
      Bundle ID: com.fugo.wow
      App Store Link: https://apps.apple.com/us/app/words-of-wonders-crossword/id1369521645?uo=4
       

      🤩 Hack Features

      - Auto ADS OFF

      - Auto Win

      - Gems

      - w Coins

      - Hints

      - Hammer

      - Rocket
        • Thanks
        • Like
      • 8 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