Jump to content

pop-up automatically in the Preference Bundle my Tweak?


Go to solution Solved by AnotherLurker,

10 posts in this topic

Recommended Posts

Posted

You wanna know how to add a UIalert in the preference bundle?

 

I already know when the button is clicked, will pop up alerts, but what I want, when I first entered my bundle preference, immediately pop up. such preference bundlenya mario run in the setting.

Posted

I already know when the button is clicked, will pop up alerts, but what I want, when I first entered my bundle preference, immediately pop up. such preference bundlenya mario run in the setting.

This are all some different types of popups you can use.

 

https://iosgods.com/topic/13988-varieties-of-uialertview-types-to-use-in-your-tweaks-patchers/?hl=%2Buialert 

Posted

In your PreferenceBundle.m file, you can add an implementation for the -viewDidLoad method

For example:

- (void)viewDidLoad {
    [super viewDidLoad];

    UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Title"
                                                        message:@"Message"
                                                       delegate:nil
                                              cancelButtonTitle:@"Ok"
                                              otherButtonTitles:nil];
    [alertView show];
}
Posted

 

In your PreferenceBundle.m file, you can add an implementation for the -viewDidLoad method

For example:

- (void)viewDidLoad {
    [super viewDidLoad];

    UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Title"
                                                        message:@"Message"
                                                       delegate:nil
                                              cancelButtonTitle:@"Ok"
                                              otherButtonTitles:nil];
    [alertView show];
}

 

Thanks.. Worked!!!

Posted (edited)

 

In your PreferenceBundle.m file, you can add an implementation for the -viewDidLoad method

For example:

- (void)viewDidLoad {
    [super viewDidLoad];

    UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Title"
                                                        message:@"Message"
                                                       delegate:nil
                                              cancelButtonTitle:@"Ok"
                                              otherButtonTitles:nil];
    [alertView show];
}

 

i have error like this

 

 

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/usr/include/objc/NSObject.h:36:1: note:
      'retain' has been explicitly marked unavailable here
- (instancetype)retain OBJC_ARC_UNAVAILABLE;
^
FasterCharging.mm:10:83: error: ARC forbids explicit message send of 'retain'
  ...= [[self loadSpecifiersFromPlistName:@"FasterCharging" target:self] reta...
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
2 errors generated.

My mm.

 

 

ARCHS = armv7 arm64
CFLAGS = -Wno-deprecated -Wno-deprecated-declarations
include $(THEOS)/makefiles/common.mk

BUNDLE_NAME = FasterCharging
FasterCharging_FILES = FasterCharging.mm $(shell find $(THEOS)/include/SCLAlertView -name '*.m')
FasterCharging_INSTALL_PATH = /Library/PreferenceBundles
FasterCharging_FRAMEWORKS = UIKit
FasterCharging_PRIVATE_FRAMEWORKS = Preferences
FasterCharging_CFLAGS = -fobjc-arc

include $(THEOS_MAKE_PATH)/bundle.mk

internal-stage::
	$(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences$(ECHO_END)
	$(ECHO_NOTHING)cp entry.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/FasterCharging.plist$(ECHO_END)

what can i do?

Updated by pxcex
Posted

Work

 

[[self loadSpecifiersFromPlistName:@"FasterCharging" target:self] retain];
to

[self loadSpecifiersFromPlistName:@"FasterCharging" target:self];

Work  Perfectly  

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

    • Royal Kingdom v21296 +4 Jailed Cheats [ Coins + More ]
      Modded/Hacked App: Royal Kingdom By Dream Games
      Bundle ID: com.dreamgames.royalkingdom
      iTunes Store Link: https://apps.apple.com/ph/app/royal-kingdom/id1606549505
       

      Hack Features:
      - Freeze Coins
      - Freeze Lives
      - Freeze Boosters
      - Freeze Moves


      Jailbreak required hack(s): [Mod Menu Hack] Royal Kingdom v3987 +4 Cheats [ Unlimited Coins ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Like
      • 152 replies
    • Royal Kingdom v21296 +4 Cheats [ Coins + More ]
      Modded/Hacked App: Royal Kingdom By Dream Games
      Bundle ID: com.dreamgames.royalkingdom
      iTunes Store Link: https://apps.apple.com/ph/app/royal-kingdom/id1606549505
       

      Hack Features:
      - Freeze Coins
      - Freeze Lives
      - Freeze Boosters
      - Freeze Moves


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Royal Kingdom v3987 +4 Jailed Cheats [ Unlimited Coins ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 108 replies
    • Pudgy Party - Battle Royale v0.12.2 +7 Jailed Cheats [ Speed, Gravity + More ]
      Modded/Hacked App: Pudgy Party - Battle Royale By Mythical, Inc.
      Bundle ID: com.mythical.pudgyparty
      App Store Link: https://apps.apple.com/us/app/pudgy-party-battle-royale/id6744258913?uo=4

       
       

      🤩 Hack Features

      - Jump Height Multiplier -> Affects bots too. Use with Freeze/Dumb Bots.
      - Gravity Multiplier -> Affects bots too. Use with Freeze/Dumb Bots.
      - Speed Multiplier -> Affects bots too. Use with Freeze/Dumb Bots.
      - Friction Multiplier -> Affects bots too. Use with Freeze/Dumb Bots.
      - Freeze Bots
      - Dumb Bots
      - Free In-App Purchases
      • 7 replies
    • Pudgy Party - Battle Royale v0.12.2 +7 Cheats [ Speed, Gravity + More ]
      Modded/Hacked App: Pudgy Party - Battle Royale By Mythical, Inc.
      Bundle ID: com.mythical.pudgyparty
      App Store Link: https://apps.apple.com/us/app/pudgy-party-battle-royale/id6744258913?uo=4

       


      🤩 Hack Features

      - Jump Height Multiplier -> Affects bots too. Use with Freeze/Dumb Bots.
      - Gravity Multiplier -> Affects bots too. Use with Freeze/Dumb Bots.
      - Speed Multiplier -> Affects bots too. Use with Freeze/Dumb Bots.
      - Friction Multiplier -> Affects bots too. Use with Freeze/Dumb Bots.
      - Freeze Bots
      - Dumb Bots
      - Free In-App Purchases
      • 19 replies
    • Subway Surfers City v1.26.0 +10 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Subway Surfers City By Sybo Games ApS
      Bundle ID: com.sybogames.subway.surfers.game
      iTunes Store Link: https://apps.apple.com/ca/app/subway-surfers-city/id6504188939?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Keys -> Earn or spend some.
      - Unlimited Revives - Earn or spend some.
      - Unlimited Tokens -> Earn or spend some.
      - All Boards Unlocked
      - All Surfers Unlocked
      - Max Level -> Earn some XP.
      - God Mode
      - Unlimited Score
      - Unlimited Jumps


      Jailbreak required hack(s): [Mod Menu Hack] Subway Surfers City v1.13.2 +7 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 211 replies
    • Subway Surfers City v1.26.0 +10 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Subway Surfers City By Sybo Games ApS
      Bundle ID: com.sybogames.subway.surfers.game
      iTunes Store Link: https://apps.apple.com/ca/app/subway-surfers-city/id6504188939?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Keys
      - Unlimited Revives
      - All Boards Unlocked
      - All Surfers Unlocked
      - Max Level -> Earn some XP.
      - God Mode


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Subway Surfers City v1.13.2 +5 Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 71 replies
    • City Of Survivors v1.5.3 [+6 Jailed Cheats]
      Modded/Hacked App: City Of Survivors By Chengdu Pengfei Network Technology Co., Ltd.
      Bundle ID: com.gatherfun.cityofsurvivors
      App Store Link: https://apps.apple.com/us/app/city-of-survivors/id6743288723?uo=4



      Important


      Do not enable feautures on loading screen or do not keep enabled if you leave game.

      If you leave game without disabling features or enable on loading screen game will be crash.

       

      🤩 Hack Features

      - Add Gold
      - Add Diamond
      - Add Wood
      - Add Plank 
      - Add Explore Token
      - Add Skip Ads Coupon
      • 20 replies
    • City Of Survivors v1.5.3 [+6 Cheats]
      Modded/Hacked App: City Of Survivors By Chengdu Pengfei Network Technology Co., Ltd.
      Bundle ID: com.gatherfun.cityofsurvivors
      App Store Link: https://apps.apple.com/us/app/city-of-survivors/id6743288723?uo=4



      Important


      Do not enable feautures on loading screen or do not keep enabled if you leave game.

      If you leave game without disabling features or enable on loading screen game will be crash.

       

      🤩 Hack Features

      - Add Gold
      - Add Diamond
      - Add Wood
      - Add Plank 
      - Add Explore Token
      - Add Skip Ads Coupon
      • 37 replies
    • Heroes Crew: Strategy Defense v1.3.52 [+12 Cheats]
      Modded/Hacked App: Heroes Crew: Strategy Defense By AlohaFactory
      Bundle ID: com.overdogs.heroes
      App Store Link: https://apps.apple.com/us/app/heroes-crew-strategy-defense/id6744350078?uo=4



      🤩 Hack Features

      - Add Currency
      - Unlimited Items
      - Unlimited Property (Heroes, Relic etc)
      - Activate VVip (Use after tutorial and only in main menu)
      - Activate Premium Hunt Pass (Use after tutorial and only in main menu)
      - Unlimited Battle Currency (Always Will Increase)
      • 117 replies
    • Heroes Crew: Strategy Defense v1.3.52 [+12 Jailed Cheats]
      Modded/Hacked App: Heroes Crew: Strategy Defense By AlohaFactory
      Bundle ID: com.overdogs.heroes
      App Store Link: https://apps.apple.com/us/app/heroes-crew-strategy-defense/id6744350078?uo=4



      🤩 Hack Features

      - Add Currency
      - Unlimited Items
      - Unlimited Property (Heroes, Relic etc)
      - Activate VVip (Use after tutorial and only in main menu)
      - Activate Premium Hunt Pass (Use after tutorial and only in main menu)
      - Unlimited Battle Currency (Always Will Increase)
      • 49 replies
    • MU: Pocket Knights v0.0.5 +3 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: MU: Pocket Knights By WEBZEN INC.
      Bundle ID: com.webzen.muidle.ios
      App Store Link: https://apps.apple.com/ph/app/mu-pocket-knights/id6742208743?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - Speed Multiplier
      • 29 replies
    • MU: Pocket Knights v0.0.5 +3 Cheats [ Damage + More ]
      Modded/Hacked App: MU: Pocket Knights By WEBZEN INC.
      Bundle ID: com.webzen.muidle.ios
      App Store Link: https://apps.apple.com/ph/app/mu-pocket-knights/id6742208743?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - God Mode
      - Speed Multiplier
      • 14 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