Skip to content
Guest Big Announcement

Help me with this coding please

Featured Replies

Where should I place the key on this code?

 -(void) setIsStickerFromShop:(bool) neverbeing {
 neverbeing = true;
 %orig(neverbeing);
}


Like this, (@"kKey"))

-(int)method {
if(GetPrefBool(@"kKey")) {
return 9999999;
}
return %orig;
}

Solved by xC3FFF0E

  • Solution

Neverbeing? Change it to "argument".

 

If you are making a patcher, follow this:

 

[Paste it to your Tweak.xm]

 

 

 

%hook (Class Target)

 

-(void)setIsStickerFromShop:(bool)argument {

if(GetPrefBool(@"k(Your Desire Word Here = You'll use this on your .plist)")) {

argument = TRUE;

}

return %orig;

}

 

%end

 

 

 

Clear View:

 

%hook (Class Target)

 

-(void)setIsStickerFromShop:(bool)argument {

if(GetPrefBool(@"kSticker")) {

argument = TRUE;

}

return %orig;

}

 

%end

 

Then on your .plist, where located in /var/mobile/(your project)/(project name)/Resources/(name of your project).plist

 

On that .plist, put this:

 

<key>cell</key>

<string>PSGroupCell</string>

<key>footerText</key>

<string>Your note of the switch</string>

</dict>

<dict>

<key>cell</key>

<string>PSSwitchCell</string>

<key>default</key>

<false/>

<key>defaults</key>

<string>com.yourcompany.projectname</string>

<key>key</key>

<string>kSticker</string> <----- Put the "kSticker" there (depends on what you put on the tweak.xm)

<key>label</key>

<string>Very Important: Name of the Switch.</string>

</dict>

<dict>

 

 

Just follow these if you're doing a Patcher.

Oh... Is that really "neverbeing"? O.o

  • Author

Neverbeing? Change it to "argument".

 

If you are making a patcher, follow this:

 

[Paste it to your Tweak.xm]

 

 

 

%hook (Class Target)

 

-(void)setIsStickerFromShop:(bool)argument {

if(GetPrefBool(@"k(Your Desire Word Here = You'll use this on your .plist)")) {

argument = TRUE;

}

return %orig;

}

 

%end

 

 

 

Clear View:

 

%hook (Class Target)

 

-(void)setIsStickerFromShop:(bool)argument {

if(GetPrefBool(@"kSticker")) {

argument = TRUE;

}

return %orig;

}

 

%end

 

Then on your .plist, where located in /var/mobile/(your project)/(project name)/Resources/(name of your project).plist

 

On that .plist, put this:

 

<key>cell</key>

<string>PSGroupCell</string>

<key>footerText</key>

<string>Your note of the switch</string>

</dict>

<dict>

<key>cell</key>

<string>PSSwitchCell</string>

<key>default</key>

<false/>

<key>defaults</key>

<string>com.yourcompany.projectname</string>

<key>key</key>

<string>kSticker</string> <----- Put the "kSticker" there (depends on what you put on the tweak.xm)

<key>label</key>

<string>Very Important: Name of the Switch.</string>

</dict>

<dict>

 

 

Just follow these if you're doing a Patcher.

Oh... Is that really "neverbeing"? O.o

 

OMG! Thank you, Sir! O.o:clap:

  • Author

It will work. Try using the template patcher of iOSGods ;)

 

Here's the link: http://iosgods.com/topic/1907-update2template-custom-nic-patcherpreferencebundle-template/?p=21688

 

Just follow the instructions :)

 

Well, you save my works!  I also use template patcher from iOSGods.

Sorry, noob here.

Once again, thank you. Now my patch is working (y) (y) (y)xD

Well, you save my works!  I also use template patcher from iOSGods.

Sorry, noob here.

Once again, thank you. Now my patch is working (y) (y) (y)xD

Hehe :) Good Job! Going to post it here? We're all waiting :)

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.