Jump to content

Code to dismiss keyboard when user is done inputting values in Preferences


20 posts in this topic

Recommended Posts

Updated (edited)

Add this to your .mm file, changes have this (!!!!!) next to them

Creates a Black Ops 3 style button in the middle of your screen, and when you tap it, it'll take away the keyboard.

Hidden Content

    #import <Preferences/Preferences.h>
    
    UIButton *dismissKeyboard; //!!!!! ADD THIS
    
    @interface aimbotListController: PSListController {
    }
    @end
    
    @implementation aimbotListController
    - (id)specifiers {
    if(_specifiers == nil) {
    _specifiers = [[self loadSpecifiersFromPlistName:@"aimbot" target:self] retain];
    }
    return _specifiers;
    }
    
    /*ADD THIS CODE WHERE YOU SEE IT IN YOUR .mm*/
    /*COPY FROM HERE UNTIL IT SAYS END AND PASTE IN YOUR .mm*/
    - (void)viewDidAppear:(BOOL)arg1 {
    dismissKeyboard = [UIButton buttonWithType:UIButtonTypeRoundedRect];
    dismissKeyboard.titleLabel.font = [UIFont fontWithName:@"Arial-BoldMT" size:22.0f];
    dismissKeyboard.frame = CGRectMake(0,0,60,30);
    dismissKeyboard.backgroundColor = [UIColor blackColor];
    dismissKeyboard.center = CGPointMake([UIApplication sharedApplication].keyWindow.rootViewController.view.frame.size.width/2,[UIApplication sharedApplication].keyWindow.rootViewController.view.frame.size.height/2);
    dismissKeyboard.alpha = 0.85;
    dismissKeyboard.hidden = YES;
    [dismissKeyboard setTitle:@"Done" forState:UIControlStateNormal];
    [dismissKeyboard addTarget:self action:@[member='selectorr'](closeKeyboard) forControlEvents:UIControlEventTouchUpInside];
    [dismissKeyboard setTitleColor:rgb(0xcc0000) forState:UIControlStateNormal];
    [[UIApplication sharedApplication].keyWindow addSubview:dismissKeyboard];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@[member='selectorr'](keyboardDidShow) name:UIKeyboardDidShowNotification object:nil];
    }
    
    //THIS TOO !!!!!
    - (void)keyboardDidShow {
    dismissKeyboard.hidden = NO;
    }
    
    //ALSO THIS !!!!!
    - (void)closeKeyboard {
    dismissKeyboard.hidden = YES;
    
    [[UIApplication sharedApplication] sendAction:selector(resignFirstResponder) to:nil from:nil forEvent:nil];
    }
    //END !!!!!!
    @end

Updated by Guest
Posted

iPads have this option by default but iPhones didn't in PSEditTextCells. xD

 

Thanks!!

Posted (edited)

iPads have this option by default but iPhones didn't in PSEditTextCells. xD

Thanks!!

No problem :) Stick around while I correct a typo, I'll let you know when I corrected it

iPads have this option by default but iPhones didn't in PSEditTextCells. xD

Thanks!!

Never mind, someone here has the username selector -_-

 

once the compiler gives an error, go to the line number and remove the extra 'r' in selector

Updated by Guest
  • Our picks

    • Gossip Harbor®: Merge & Story v3.67.0 [+2 Jailed Cheats]
      Modded/Hacked App: Gossip Harbor®: Merge & Story By Microfun Limited
      Bundle ID: com.mergegame.icookie
      App Store Link: https://apps.apple.com/us/app/gossip-harbor-merge-story/id1623318294?uo=4



      🤩 Hack Features

      - Unlimited Energy
      - Freeze Currency (Never Decrease)
        • Winner
        • Like
      • 12 replies
    • Gossip Harbor®: Merge & Story v3.67.0 [+2 Cheats]
      Modded/Hacked App: Gossip Harbor®: Merge & Story By Microfun Limited
      Bundle ID: com.mergegame.icookie
      App Store Link: https://apps.apple.com/us/app/gossip-harbor-merge-story/id1623318294?uo=4



      🤩 Hack Features

      - Unlimited Energy
      - Freeze Currency (Never Decrease)
       
        • Haha
        • Winner
      • 3 replies
    • Seaside Escape®: Merge & Story v1.73.0 [+2 Jailed Cheats]
      Modded/Hacked App: Seaside Escape®: Merge & Story By Microfun Limited
      Bundle ID: com.mf.cupcake
      App Store Link: https://apps.apple.com/us/app/seaside-escape-merge-story/id6443755785?uo=4

       

      🤩 Hack Features

      - Unlimited Energy
      - Freeze Currency
        • Winner
      • 3 replies
    • Seaside Escape®: Merge & Story v1.73.0 [+2 Cheats]
      Modded/Hacked App: Seaside Escape®: Merge & Story By Microfun Limited
      Bundle ID: com.mf.cupcake
      App Store Link: https://apps.apple.com/us/app/seaside-escape-merge-story/id6443755785?uo=4



      🤩 Hack Features

      - Unlimited Energy
      - Freeze Currency
       
        • Winner
      • 2 replies
    • Night Valley - Tower Defense v1.0.11 [+2 Jailed Cheats]
      Modded/Hacked App: Night Valley - Tower Defense By Pitaya Group, Inc, The
      Bundle ID: com.pitaya.natv
      App Store Link: https://apps.apple.com/us/app/night-valley-tower-defense/id6467846624?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency
      • 4 replies
    • Night Valley - Tower Defense v1.0.11 [+2 Cheats]
      Modded/Hacked App: Night Valley - Tower Defense By Pitaya Group, Inc, The
      Bundle ID: com.pitaya.natv
      App Store Link: https://apps.apple.com/us/app/night-valley-tower-defense/id6467846624?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency
       
        • Agree
        • Winner
        • Like
      • 2 replies
    • Disney Solitaire v1.2.3 [ +7 Cheats ] Auto Win
      Modded/Hacked App: Disney Solitaire By SuperPlay LTD
      Bundle ID: com.superplaystudios.disneysolitairedreams
      iTunes Store Link: https://apps.apple.com/ph/app/disney-solitaire/id6475757306?uo=4
       

      🤩 Hack Features

      - Coins [ Win Match ]

      - Task [ No Need Star ]

      - Stars

      - Undo

      - Wild Card

      - Free Ticket

      - Auto Win
        • Thanks
        • Like
      • 14 replies
    • Disney Solitaire v1.2.3 [ +7 Jailed ] Auto Win
      Modded/Hacked App: Disney Solitaire By SuperPlay LTD
      Bundle ID: com.superplaystudios.disneysolitairedreams
      iTunes Store Link: https://apps.apple.com/ph/app/disney-solitaire/id6475757306?uo=4


      🤩 Hack Features

      - Coins [ Win Match ]

      - Task [ No Need Star ]

      - Stars

      - Undo

      - Wild Card

      - Free Ticket

      - Auto Win
        • Thanks
        • Like
      • 18 replies
    • Domino Dreams™ v1.42.3 [ +10 Cheats ] Auto Win
      Modded/Hacked App: Domino Dreams™ By SuperPlay LTD
      Bundle ID: com.superplaystudios.dominodreams
      iTunes Store Link: https://apps.apple.com/us/app/domino-dreams/id6444043291?uo=4



      🤩 Hack Features

      - Coins Unlimited [ LvL Rewards ]

      - Stars Unlimited [ Win LvL Then Back Show Stars Hacked Disable Cheat Close App Again Open Then Work Stars Don't Use Again ] Linked With Some Task

      - Ticket Free Max [ Linked With Stars ] LvL Cost

      - Undo Max [ Linked With Stars ] 

      - Gold Card Max [ Linked With Stars ] 

      - Chapter Next [ Play LvL Quit & Win ]

      - Avatar Unlocked [ Play LvL Win After Unlocked Don"t Use Again ]

      - Auto Win LvL [ Play LvL Move Anything ] 

      - Bonus Mod LvL [ ON-OFF ] 

      - Spin Free [ Need One Point only Open Play LvL ]
        • Winner
        • Like
      • 10 replies
    • Domino Dreams™ v1.42.3 [ +10 Jailed ] Auto Win
      Modded/Hacked App: Domino Dreams™ By SuperPlay LTD
      Bundle ID: com.superplaystudios.dominodreams
      iTunes Store Link: https://apps.apple.com/us/app/domino-dreams/id6444043291?uo=4


      🤩 Hack Features

      - Coins Unlimited [ LvL Rewards ]
      - Stars Unlimited [ Win LvL Then Back Show Stars Hacked Disable Cheat Close App Again Open Then Work Stars Don't Use Again ] Linked With Some Task
      - Ticket Free Max [ Linked With Stars ] LvL Cost
      - Undo Max [ Linked With Stars ] 
      - Gold Card Max [ Linked With Stars ] 
      - Chapter Next [ Play LvL Quit & Win ]
      - Avatar Unlocked [ Play LvL Win After Unlocked Don"t Use Again ]
      - Auto Win LvL [ Play LvL Move Anything ] 
      - Bonus Mod LvL [ ON-OFF ] 
      - Spin Free [ Need One Point only Open Play LvL ]
        • Informative
        • Like
      • 17 replies
    • Pop Island v1.0.5 [ +1 Cheats ] Coins Max
      Modded/Hacked App: Pop Island By HISTAR INTERACTIVE PTE. LTD.
      Bundle ID: com.hmbdgames.match
      iTunes Store Link: https://apps.apple.com/us/app/pop-island/id6505047210?uo=4


      🤩 Hack Features

      - Coins [ Win Match Disable After Hack ]


        • Agree
        • Like
      • 10 replies
    • Pop Island v1.0.5 [ +1 Jailed ] Coins Max
      Modded/Hacked App: Pop Island By HISTAR INTERACTIVE PTE. LTD.
      Bundle ID: com.hmbdgames.match
      iTunes Store Link: https://apps.apple.com/us/app/pop-island/id6505047210?uo=4


      🤩 Hack Features

      - Coins [ Win Match Disable After Hack ]


        • Winner
        • Like
      • 9 replies
×
  • 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