mirror of
https://github.com/HackPlan/IQKeyboardManager.git
synced 2026-06-17 02:25:14 +08:00
- Enhanced demo project and added various examples demonstrating almost all properties of library. - Enhanced library Settings Controller. - Moved some contents of README.md file to other files.
43 lines
857 B
Objective-C
43 lines
857 B
Objective-C
//
|
|
// YYTextViewController.m
|
|
// Demo
|
|
//
|
|
// Created by IEMacBook01 on 21/05/16.
|
|
// Copyright © 2016 Iftekhar. All rights reserved.
|
|
//
|
|
|
|
#import "YYTextViewController.h"
|
|
#import "IQKeyboardManager.h"
|
|
|
|
#import "YYTextView.h"
|
|
|
|
|
|
@interface YYTextViewController ()<YYTextViewDelegate>
|
|
|
|
@end
|
|
|
|
@implementation YYTextViewController
|
|
{
|
|
IBOutlet YYTextView *textView;
|
|
}
|
|
|
|
+(void)initialize
|
|
{
|
|
[super initialize];
|
|
|
|
[[IQKeyboardManager sharedManager] registerTextFieldViewClass:[YYTextView class] didBeginEditingNotificationName:YYTextViewTextDidBeginEditingNotification didEndEditingNotificationName:YYTextViewTextDidEndEditingNotification];
|
|
}
|
|
|
|
-(void)viewDidLoad
|
|
{
|
|
[super viewDidLoad];
|
|
textView.placeholderText=@"This is placeholder text of YYTextView";
|
|
}
|
|
|
|
- (void)textViewDidBeginEditing:(YYTextView *)tv
|
|
{
|
|
[tv reloadInputViews];
|
|
}
|
|
|
|
@end
|