Donald J Trump
Member-
Posts
78 -
Joined
-
Last visited
Everything posted by Donald J Trump
-
Help/Support Errors in Terminal for Make Project (Read)
Donald J Trump replied to Donald J Trump's topic in Help & Support
@DiDA @shmoo @ZahirSher why isn't the "Thanks" button opening the url: http://YouTube.com/StarSunSunny -
Help/Support Errors in Terminal for Make Project (Read)
Donald J Trump replied to Donald J Trump's topic in Help & Support
It worked thanks BUT why isn't the "Thanks" button opening the url: http://YouTube.com/StarSunSunny -
Help/Support Errors in Terminal for Make Project (Read)
Donald J Trump replied to Donald J Trump's topic in Help & Support
It worked thanks BUT why isn't the "Thanks" button opening the url: http://YouTube.com/StarSunSunny -
Help/Support Errors in Terminal for Make Project (Read)
Donald J Trump posted a topic in Help & Support
I'm making a very basic tweak for AppStore just removing all apps from updates tab so it just states all app are up to date and I get this error, it would be awesome if you could fix or help me fix this error. Thank you. error image: The files inside the folder of project: -> My Tweak.xm: #import <UIKit/UIKit.h> %hook ASUpdatesViewController -(void) _setUpdatesPageWithUpdates:(id) fromCache:(bool) { id = NULL bool = FALSE; } %end %hook ASAppDelegate -(void)applicationDidBecomeActive:(id)application { NSUserDefaults *validate = [NSUserDefaults standardUserDefaults]; NSString *alreadyRun = @"already_run"; if ([validate boolForKey:alreadyRun]) return; [validate setBool:YES forKey:alreadyRun]; UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"NoUpdatesAvailable" message:@"Initialization Finished" delegate:nil cancelButtonTitle:@"Thanks" otherButtonTitles:nil]; [alert show]; [alert release]; } -(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { if (buttonIndex != [alertView cancelButtonIndex]) { NSLog(@"Launching youtube"); [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://youtube.com/StarSunSunny"]]; } } %end -> my MakeFile: ARCHS = armv7 arm64 include theos/makefiles/common.mk TWEAK_NAME = NoUpdatesAvailable NoUpdatesAvailable_FILES = Tweak.xm NoUpdatesAvailable_FRAMEWORKS = UIKit include $(THEOS_MAKE_PATH)/tweak.mk after-install:: install.exec "killall -9 SpringBoard" -
TuT [Tutorial] How to make your UIAlertView Popup only appear once!
Donald J Trump replied to castix's topic in Tutorials
H -
Help/Support Switch Not Turning on TWEAK
Donald J Trump replied to Donald J Trump's topic in Help & Support
Yes I did but not working still As I looked through other tweak.xm from open sourced tweaks, none of the tweak.xm(s) had #define Plist path for tweaks but only hacks. So I think the #define Plist path is screwing the tweak up -
Help/Support Switch Not Turning on TWEAK
Donald J Trump replied to Donald J Trump's topic in Help & Support
Did that but sadly it's still not working, I dunno what to do since I've redid the project multiple times with different templates and used other tuts on iOSgods -
Help/Support Switch Not Turning on TWEAK
Donald J Trump replied to Donald J Trump's topic in Help & Support
I'm not hacking a game I'm making a tweak for settings app. -
Help/Support Switch Not Turning on TWEAK
Donald J Trump replied to Donald J Trump's topic in Help & Support
.plist: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>items</key> <array> <dict> <key>cell</key> <string>PSGroupCell</string> <key>footerText</key> <string>SettingsSearch.</string> </dict> <dict> <key>cell</key> <string>PSSwitchCell</string> <key>default</key> <false/> <key>defaults</key> <string>com.sunny.NoSettingsSearch</string> <key>key</key> <string>key1</string> <key>label</key> <string>Search On or Off</string> </dict> <dict> <key>cell</key> <string>PSGroupCell</string> </dict> <dict> <key>cell</key> <string>PSTextCell</string> <key>label</key> <string>Made by Sunny Patel.</string> </dict> <dict> <key>action</key> <string>link</string> <key>cell</key> <string>PSButtonCell</string> <key>icon</key> <string>[email protected]</string> <key>label</key> <string>Subscribe (Button)</string> </dict> </array> <key>title</key> <string>NoSettingsSearch Tweak</string> </dict> </plist> tweak.xm: #define PLIST_PATH @"/var/mobile/Library/Preferences/com.sunny.NoSettingsSearch.plist" inline bool GetPrefBool(NSString *key) { return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue]; } %hook PSSearchController -(id)searchBar { if(GetPrefBool(@"key1")) { return NULL; } return %orig; } %end -
Help/Support Switch Not Turning on TWEAK
Donald J Trump replied to Donald J Trump's topic in Help & Support
Yes it is Yes it is -
Switch Not Turning on TWEAK in preference bundle! I got the preference bundle working but the switch when I turn it on, doesn't turn the tweak on
-
Still not working. i dunno why it's not working, is there something wrong with the .mm?
-
@@Basmal121 but still didn't work, maybe check my prefbundle.mm file: #import "prefbundle.h" @interface prefbundleListController: PSListController { } @end @implementation prefbundleListController - (id)specifiers { if(_specifiers == nil) { _specifiers = [[self loadSpecifiersFromPlistName:@"prefbundle" target:self] retain]; } return _specifiers; } -(void)respring { system("killall -9 SpringBoard"); } -(void) apply { UIAlertView *alert1 = [[uIAlertView alloc]initWithTitle:@"NoSettingsSearch!" message:@"Made by Sunny Patel" delegate:self cancelButtonTitle:@"Thanks" otherButtonTitles:nil]; [alert1 show]; } -(void) link { [[uIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.c...tarSunSunny]]; } @end // vim:ft=objc
-
Pasted exactly what he "fixed" into the right files but still didn't work, maybe check my prefbundle.mm file: #import "prefbundle.h" @interface prefbundleListController: PSListController { } @end @implementation prefbundleListController - (id)specifiers { if(_specifiers == nil) { _specifiers = [[self loadSpecifiersFromPlistName:@"prefbundle" target:self] retain]; } return _specifiers; } -(void)respring { system("killall -9 SpringBoard"); } -(void) apply { UIAlertView *alert1 = [[uIAlertView alloc]initWithTitle:@"NoSettingsSearch!" message:@"Made by Sunny Patel" delegate:self cancelButtonTitle:@"Thanks" otherButtonTitles:nil]; [alert1 show]; } -(void) link { [[uIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/StarSunSunny]]; } @end // vim:ft=objc
-
Did he fix it for me? I thought he just reposted what I said
-
You're online, why aren't you helping me?
-
Hello please help
-
I made sure already it's not the problem please help
-
Tweak.xm: #define PLIST_PATH @"/var/mobile/Library/Preferences/NoSettingsSearch.plist" inline bool GetPrefBool(NSString *key) { return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue]; } %hook PSSearchController -(id)searchBar { if(GetPrefBool(@"kNoSettingsSearch")) { return NULL; } return %orig; } %end .Plist from Prefbundle: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>entry</key> <dict> <key>cell</key> <string>PSLinkCell</string> <key>icon</key> <string>icon.png</string> <key>label</key> <string>NoSettingsSearch</string> </dict> <key>items</key> <array> <dict> <key>cell</key> <string>PSGroupCell</string> <key>label</key> <string>On or Off</string> </dict> <dict> <key>cell</key> <string>PSSwitchCell</string> <key>default</key> <false/> <key>defaults</key> <string>NoSettingsSearch</string> <key>key</key> <string>kSettingsSearch</string> <key>label</key> <string>Search (On or Off)</string> </dict> <dict> <key>cell</key> <string>PSGroupCell</string> <key>label</key> <string>Tweak by Sunny Patel only for Use!</string> </dict> <dict> <key>cell</key> <string>PSTextCell</string> <key>label</key> <string>Visit http://youtube.com/StarSunSunny for more!</string> </dict> </array> <key>title</key> <string>NoSettingsSearch</string> </dict> <dict> <key>cell</key> <string>PSButtonCell</string> <key>label</key> <string>Respring</string> <key>action</key> <string>respring</string> </dict> <dict> <key>cell</key> <string>PSButtonCell</string> <key>action</key> <string>apply</string> <key>label</key> <string>Thanks</string> </dict> <dict> <key>action</key> <string>link</string> <key>cell</key> <string>PSButtonCell</string> <key>label</key> <string>Subscribe to My Channel!</string> </dict> </plist>
-
I created my tweak and prefbundle according to https://iosgods.com/topic/444-tutorial-how-to-make-a-preference-bundle/ My preference bundle doesn't appear in settings app after I respring and it's not there. Please help and I'll give you what you need to look at. I changed whatever it said to change in the files, and I included the recommended form of the asking something for prefbundle I also included respring button, and ui alert properly according to the tut
-
Help/Support Learning Objective C and Plain C (READ)
Donald J Trump replied to Donald J Trump's topic in Help & Support
Ok thanks but I know void and int, double, floats... So I just need to learn loops and objC -
Help/Support Learning Objective C and Plain C (READ)
Donald J Trump posted a topic in Help & Support
@@shmoo @@DiDA @@Amuyea @@Crypto How did you all learn objective c and c++? Please tell me so I can learn, I look up to you guys. Please help me out.