Skip to content

Comment view for iOS, same as messages app. Customizable.

License

Notifications You must be signed in to change notification settings

kavichen/DCCommentView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DCCommentView

Comment view for iOS, same as messages app. Customizable.

alt tag

#Example

@interface CommentsViewController ()

@property(nonatomic,strong)DCCommentView *commentView;

@end
- (void)viewDidLoad
{
    [super viewDidLoad];
    self.commentView = [DCCommentView new];
    self.commentView.delegate = self;
    //self.commentView.charLimit = 255; you can set this if you want a character limit
    self.commentView.tintColor = [UIColor redColor]; //sets the proper accent items to red
    //self.commentView.accessoryImage = [UIImage imageNamed:@"someimage"]; where the camera button would go
	//more setup code
}

-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [self.commentView bindToScrollView:self.tableView superview:self.view];
}
-(void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    [self.commentView resignFirstResponder];
}

Install

The recommended approach for installing DCCommentView is via the CocoaPods package manager, as it provides flexible dependency management and dead simple installation.

via CocoaPods

Install CocoaPods if not already available:

$ [sudo] gem install cocoapods
$ pod setup

Change to the directory of your Xcode project, and Create and Edit your Podfile and add DCCommentView:

$ cd /path/to/MyProject
$ touch Podfile
$ edit Podfile
platform :ios, '7.0'
pod 'DCCommentView'

Install into your project:

$ pod install

Open your project in Xcode from the .xcworkspace file (not the usual project file)

Via git just add DCCommentView as a git submodule

Requirements

DCCommentView requires at least iOS 7.

License

DCCommentView is license under the Apache License.

Contact

Dalton Cherry

About

Comment view for iOS, same as messages app. Customizable.

Resources

License

Stars

Watchers

Forks

Packages

No packages published