Jump to content

Astronaut

Senior Member
  • Posts

    163
  • Joined

  • Last visited

Everything posted by Astronaut

  1. I am trying to enable/disable my tweak in settings but won’t at all. My key is right in Root.plist. This is the code: https://ghostbin.com/paste/ajybx
  2. When compiling my package I'm greeted with this error: Tweak.xm:224:1: error: inline variables are a C++17 extension [-Werror,-Wc++17-extensions] inline int GetPrefInt(@"test") Tweak.xm:224:12: error: cannot initialize a variable of type 'int' with an rvalue of type 'NSString *' inline int GetPrefInt(@"test") ^ ~~~~~~~ Tweak.xm:224:31: error: expected ';' after top level declarator inline int GetPrefInt(@"test") My Tweak.xm inline int GetPrefInt(@"test") { return [[[NSDictionary dictionaryWithContentsOfFile:plistPath] valueForKey:key] intValue]; } %hook AHookedfun -(long long) someLong { return GetPrefInt(@"speed"); } %end
  3. In your case cracking does not mean making a paid app free. You must have the app to crack it or download it cracked from somewhere else.
  4. I’m not really sure but I think there’s a message that says Dida has to approve it.
  5. This. I put the template in my templates folder in Theos.
  6. I get an error whilst compiling my project that’s using the PFHeader template. Link to error pasted here since I’m on mobile. https://paste.ofcode.org/5TCyUumxRKEPc6Ebm8cKxR
  7. I need iOS 9.2 SDK according to another post but then it says the headers are wrong. Don't know which is the fix. So I added this: west_CFLAGS += -w TWEAKNAME_CFLAGS += -w i did change the name to my tweak and the preference bundle name. Now I only get 4 errors. /var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:102:86: error: property 'onTintColor' not found on object of type 'id' ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT... ^ /var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:111:90: error: property 'onTintColor' not found on object of type 'id' ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT... ^ /var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:120:90: error: property 'onTintColor' not found on object of type 'id' ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT... ^ /var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:128:90: error: property 'onTintColor' not found on object of type 'id' ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT...
  8. I get an error while compiling. I tried to fix it but instead I'm asking for help. Compiling /var/mobile/west/theos/include/SettingsKit/SKTintedListController.m... /var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:102:27: error: no known class method for selector 'appearanceWhenContainedInInstancesOfClasses:' [UISwitch appearanceWhenContainedInInstancesOfClasses:@[... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:102:86: error: property 'onTintColor' not found on object of type 'id' ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT... ^ /var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:111:31: error: no known class method for selector 'appearanceWhenContainedInInstancesOfClasses:' ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:111:90: error: property 'onTintColor' not found on object of type 'id' ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT... ^ /var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:120:31: error: no known class method for selector 'appearanceWhenContainedInInstancesOfClasses:' ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:120:90: error: property 'onTintColor' not found on object of type 'id' ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT... ^ /var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:128:31: error: no known class method for selector 'appearanceWhenContainedInInstancesOfClasses:' ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT... ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/mobile/west/theos/include/SettingsKit/SKTintedListController.m:128:90: error: property 'onTintColor' not found on object of type 'id' ...[UISwitch appearanceWhenContainedInInstancesOfClasses:@[self.class]].onT... ^ 8 errors generated. make[3]: *** [obj//var/mobile/west/theos/include/SettingsKit/SKTintedListController.m.9f1b1269.o] Error 1 make[2]: *** [internal-bundle-all_] Error 2 make[1]: *** [east.all.bundle.variables] Error 2 make: *** [internal-all] Error 2 I am using iOS 8.1 SDK if that matters.
  9. will try this soon. i will let you know. theres also this: %hook UIButton - (void)setTextColor:(UIColor *)color { %orig([UIColor whiteColor]); } %end
  10. I am trying to write a UIColor in my tweak.xm. -(void) setBackgroundColor:(id)arg1 { arg1 = ; return %orig; } %end UIColor is Red:26, Green:26, Blue 26
  11. well just found out tapping the cell that the switch is on invokes the UIAlert. I would still like to know how to implement it when the user toggles it on. i need this is for extra info on the switch. It will show an alert with more info on that certain switch.
  12. Hello, all. I am trying to show a UIAlertView in the settings when the user toggles a switch on for the first time. It should only show up once and never again for that certain switch. I did manage to implement this, however, the alert was too slow in showing up and sometimes it showed up like 2 minutes later. I would like it to show up instantly. part of test.mm: -(void)alert { NSUserDefaults *validate = [NSUserDefaults standardUserDefaults]; NSString *alreadyRun = @"already_run"; if ([validate boolForKey:alreadyRun]) return; [validate setBool:YES forKey:alreadyRun]; UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Test Title" message:@"Test Message" delegate:nil cancelButtonTitle:@"Close Test Pop-Up" otherButtonTitles:nil]; [alert show]; [alert release]; } @end part of test.plist: <dict> <key>action</key> <string>alert</string> <key>cell</key> <string>PSSwitchCell</string> <key>default</key> <false/> <key>defaults</key> <string>test.com</string> <key>key</key> <string>test1</string> <key>label</key> <string>Test Label</string> </dict> thanks
  13. It's Correct. Checked more than once.
  14. Update: I added this to my makefile. Compiles but the app that is getting tweaked crashes now. test_FRAMEWORKS = UIKit QuartzCore Update 2: removed the preference Bundle link which was crashing my app. (No longer requires a switch to turn on and off the alert.) Alert doesn't show up still. anyone?
×
  • 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