MYRTextView 0.0.1

MYRTextView 0.0.1

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

Maintained by Unclaimed.



  • By
  • ocadaruma

Description

A UITextView subclass that automatically resizes its frame when keyboard appears.

Usage

Example:

#import "ViewController.h"
#import "MYRTextView.h"

@interface ViewController ()

@property (weak, nonatomic) IBOutlet MYRTextView *textView;

@end

@implementation ViewController

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [_textView registerNotification];
}

- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    [_textView unregisterNotification];
}