iOSthemem0d

Untitled

Mar 3rd, 2020
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. static HBPreferences *preferences;
  2. static BOOL enableAll; // Enable/Disable All Tweaks
  3.  
  4. %hook UITabBar
  5.  
  6. -(void)layoutSubviews {
  7. %orig;
  8.  
  9. if(enableAll) {
  10.  
  11. // Example codes
  12.  
  13. }
  14. }
  15. %end
  16.  
  17.  
  18. %ctor {
  19.  
  20. preferences = [[HBPreferences alloc] initWithIdentifier:@"com.iOSthemem0d.FloatyTabPrefs"];
  21.  
  22. //Enable/Disable All Tweaks
  23. [preferences registerBool:&enableAll default:NO forKey:@"enableAll"];
  24. }
Advertisement
Add Comment
Please, Sign In to add comment