Jump to content

Rook

Administrator
  • Posts

    66,271
  • Joined

  • Last visited

Everything posted by Rook

  1. Check the FAQ topic in Forum Announcements section.
  2. You want to return a custom value in a function instead of a huge amount?
  3. In this tutorial, I will show you how you can add a PSSliderCell in your Patcher/PreferenceBundle project. Step 1. Start a new theos project. Step 2: This is the code required in Tweak.xm: #import <substrate.h> #import <Foundation/Foundation.h> #define PLIST_PATH @"/var/mobile/Library/Preferences/YOUR PLIST NAME HERE.plist" inline bool GetPrefBool(NSString *key) { return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue]; } inline int GetPrefInt(NSString *key) { return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] intValue]; } %hook Coins - (int)have { if(GetPrefBool(@"key1")) { // Your key name here int newValue = GetPrefInt(@"key1slider"); // Your key name here return newValue; } else { return %orig; } } %end Step 3: Now in your preferences plist file, you will need to add two cells. One is a button to toggle the PSSliderCell on/of and the other is the PSSliderCell itself. <dict> <key>cell</key> <string>PSSwitchCell</string> <key>default</key> <false/> <key>defaults</key> <string>iosgods.com.pouslider</string> <key>key</key> <string>key1</string> <key>label</key> <string>Enable Coins Hack</string> <!-- The text of your switch --> </dict> <dict> <key>cell</key> <string>PSSliderCell</string> <key>default</key> <integer>50</integer> <!-- Default value of the slider --> <key>defaults</key> <string>iosgods.com.pouslider</string> <!-- Your package name here --> <key>key</key> <string>key1slider</string> <!-- Your key name here --> <key>max</key> <real>99</real> <!-- Enter your maximum value here --> <key>min</key> <real>1</real> <!-- Enter your minimum value here --> <key>showValue</key> <!-- Show the value of the slider. true or false. --> <true/> </dict> Now save and compile and you should be good to go! If you have any questions or need any help, post down below.
  4. Niice one buddy!
  5. Nice find.
  6. Thanks for sharing.
  7. Ahah. Nice. Time to find a credit card now.
  8. There is still one more $10 iTunes Gift Card to be won. Check here: http://iosgods.com/topic/21769-10-itunes-giftcard-giveaway-riddlepuzzle-2/
  9. The giveaway has ended now. It's been running long enough and only 1 iTunes Gift Card was left to be found. The 4 winners of 1 Year ViP prize are: @@iampatricktan @@Insanitised @ @ The winners of x4 $10 iTunes Gift cards are: @@-King @@Damian @@DeathToAll32211 @@BlazinDarkness I have messaged all iTunes Gift Card winners so they can redeem their prize. All ViP winners have been promoted. Thanks for celebrating our 200,000 Members milestone with us! Stay tuned to iOSGods for more great things!
  10. You can save the changes, what do you mean?
  11. It probably won't bear Star Wars though but it will be there at the top.
  12. Can't wait for February the 12th.
  13. I don't think so. Does CSR Racing 2 have the pp file also?
  14. Rook

    Count to 4,000

    You can't count more than once 2404
  15. Good luck! If you're able to Jailbreak, you should do so. The jailbreak version of this is much more efficient!
  16. You should have them installed already before trying this.
×
  • 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