TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2016 |
Maintained by phm.
To run the example project, clone the repo, and run pod install
from the Example directory first.
@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
PHMKeyboard is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "PHMKeyboard"
Get busy Masoning
'#import "PHMKeyboard.h"'
PHM, [email protected]
PHMKeyboard is available under the MIT license. See the LICENSE file for more info.