Skip to content

demdxx/ios-close-keyboard-button

Repository files navigation

ios-close-keyboard-button

@year 2012
@license CC-BY-3.0
@copyright Dmitry Ponomarev <demdxx@gmail.com>

Thanks for button images https://github.com/gavingmiller/evernote-show-hide-keyboard

Example

How to use

#import "UIViewController+KeyboardClose.h"

@interface MyController : UIViewController

// ...

@end

...

@implementation MyController

#pragma mark UIViewController load/unload view events

- (void)viewWillAppear:(BOOL)animated
{
    [self registerKeyboardCloseButtonForIphone];

    /* ... */

    [super viewWillAppear:animated];
}

- (void)viewWillDisappear:(BOOL)animated
{
    [self unregisterKeyboardCloseButton];

    /* ... */

    [super viewWillDisappear:animated];
}

@end

License

Creative Commons License
NSHelpers by Dmitry Ponomarev <demdxx@gmail.com> is licensed under a Creative Commons Attribution 3.0 Unported License.
Based on a work at https://github.com/demdxx/NSHelpers.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published