PHMKeyboard 1.0.3

PHMKeyboard 1.0.3

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2016

Maintained by phm.



  • By
  • PHM

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Where should I create my keyboard

@interface PHMViewController ()<PHMKeyboardViewDelegate>

@end

@implementation PHMViewController
- (void)viewDidLoad {
[super viewDidLoad];

PHMKeyboardView *keyboard = [PHMKeyboardView keyboardWithDelegate:self];
[self.view addSubview:keyboard];
keyboard.frame = CGRectMake(0, 40, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height/2-40);

//自定义Style
PHMKeyboardView *keyboardT = [PHMKeyboardView keyboardWithDelegate:self styleClass:[PHMCustomStyle class]] ;
[self.view addSubview:keyboardT];
keyboardT.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height/2);
}

#pragma mark PHMKeyboardViewDelegate
- (void)keyboardView:(PHMKeyboardView *)view
button:(UIButton *)button
text:(NSString *)text {
NSLog(@"%@",text);
}
@end

Installation

PHMKeyboard is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "PHMKeyboard"

Get busy Masoning

'#import "PHMKeyboard.h"'

Author

PHM, [email protected]

License

PHMKeyboard is available under the MIT license. See the LICENSE file for more info.