Latest 0.0.1
Homepage https://github.com/ocadaruma/MYRTextView
License MIT
Platforms ios 6.0, requires ARC
Authors

Description

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

Installation

platform :ios, '6.0'
pod 'MYRTextView'
  • Manually

Copy MYRTextView.{h,m} to your project.

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];
}

Latest podspec

{
    "name": "MYRTextView",
    "version": "0.0.1",
    "summary": "A UITextView subclass automaticalliy adjusts self frame when keyboard appears.",
    "homepage": "https://github.com/ocadaruma/MYRTextView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ocadaruma": ""
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/ocadaruma/MYRTextView.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "Classes",
        "MYRTextView/**/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This