Files
IQKeyboardManager/Demo/Objective_C_Demo/ViewController/YYTextViewController.m
hackiftekhar 6becc06ca3 - Converted Obj-C demo with Autolayout
- 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.
2016-05-22 23:13:04 +05:30

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