Latest 1.0.1
Homepage https://github.com/creeveliu/CLGCommentInputViewController
License MIT
Platforms ios 8.0, requires ARC
Authors

A comment input view controller, easy to use

requirement iOS8.0 and above

Install and Import

Via CocoaPods(Recommended)

Add pod 'CLGCommentInputViewController' to your podfile and pod install

After pod installed, open yourproject.xcworkspace and

#import <CLGCommentInputViewController.h>

Mannually

Download repo, drag CLGCommentInputViewController folder to your project and

#import "CLGCommentInputViewController.h"

Usage

Just one line:

[CLGCommentInputViewController showInViewController:self title:@"Comment" sendTitle:@"Send" cancelTitle:@"Cancel" delegate:(id<CLGCommentInputViewControllerDelegate>)self];

And implement the CLGCommentInputViewControllerDelegate

- (void)didClickSendButton:(UIViewController *)commentInputVC sendText:(NSString *)text
{
    //your sending process...

    NSLog(@"Send success");
    [commentInputVC dismissViewControllerAnimated:YES completion:nil];

}

Latest podspec

{
    "name": "CLGCommentInputViewController",
    "version": "1.0.1",
    "license": "MIT",
    "summary": "A adaptive comment input view controller",
    "homepage": "https://github.com/creeveliu/CLGCommentInputViewController",
    "authors": {
        "creeveliu": "[email protected]"
    },
    "source": {
        "git": "https://github.com/creeveliu/CLGCommentInputViewController.git",
        "commit": "0bbd3e7b69d8a66df86dc771e7817ec80784ee49",
        "tag": "1.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "CLGCommentInputViewController/*.{h,m}",
    "resources": "CLGCommentInputViewController/*.xib",
    "requires_arc": true
}

Pin It on Pinterest

Share This