Latest | 0.1.6 |
---|---|
Homepage | https://github.com/daltoniam/DCCommentView |
License | Apache License, Version 2.0 |
Platforms | ios 7.0, requires ARC |
Authors |
Comment view for iOS, same as messages app. Customizable.
Example
@interface CommentsViewController ()
@property(nonatomic,strong)DCCommentView *commentView;
@end
- (void)viewDidLoad
{
[super viewDidLoad];
self.commentView = [[DCCommentView alloc] initWithScrollView:self.tableView frame:self.view.bounds];
self.commentView.delegate = self;
[self.view addSubview:self.commentView];
//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
}
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
Latest podspec
{ "name": "DCCommentView", "version": "0.1.6", "summary": "Comment view for iOS, same as messages app. Customizable.", "homepage": "https://github.com/daltoniam/DCCommentView", "license": "Apache License, Version 2.0", "authors": { "Dalton Cherry": "[email protected]" }, "social_media_url": "http://twitter.com/daltoniam", "source": { "git": "https://github.com/daltoniam/DCCommentView.git", "tag": "0.1.6" }, "platforms": { "ios": "7.0" }, "source_files": "*.{h,m}", "requires_arc": true }
Wed, 02 Mar 2016 07:13:03 +0000