Need help with JCTagListView?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

lijingcheng
211 Stars 64 Forks MIT License 39 Commits 0 Opened issues

Description

Support select tags and settings tags style.

Services available

!
?

Need anything else?

Contributors list

# 343,389
Objecti...
Ruby
21 commits
# 377,608
Objecti...
Swift
carthag...
instagr...
1 commit

JCTagListView

Stars Version License Platform

Example

To run the example project, clone the repo, and run

pod install
from the Example directory first.

Installation

JCTagListView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'JCTagListView', '2.0.0'

Usage

IB_DESIGNABLE
@interface JCTagListView : UIView

@property (nonatomic, assign) IBInspectable CGFloat tagItemSpacing; // default: 10 @property (nonatomic, assign) IBInspectable CGFloat tagLineSpacing; // default: 10 @property (nonatomic, assign) IBInspectable CGFloat tagCornerRadius; // default: 10 @property (nonatomic, assign) IBInspectable CGFloat tagBorderWidth; // default: 0.5

@property (nonatomic, assign) UIEdgeInsets tagContentInset; // default: 5、 10、 5、 10

@property (nonatomic, strong) UIColor *tagBorderColor; // default: lightGrayColor @property (nonatomic, strong) UIColor *tagSelectedBorderColor; // default: lightGrayColor @property (nonatomic, strong) UIColor *tagTextColor; // default: darkGrayColor @property (nonatomic, strong) UIColor *tagSelectedTextColor; // default: darkGrayColor @property (nonatomic, strong) UIColor *tagBackgroundColor; // default: whiteColor @property (nonatomic, strong) UIColor *tagSelectedBackgroundColor; // default: rgb(217,217,217)

@property (nonatomic, assign) BOOL supportSelected; // default: NO @property (nonatomic, assign) BOOL supportMultipleSelected; // default: NO

@property (nonatomic, strong) UIFont *tagFont; // default: [UIFont systemFontOfSize:14.0f]

@property (nonatomic, strong) NSArray *tags; @property (nonatomic, strong) NSMutableArray *selectedTags; @property (nonatomic, strong, readonly) NSMutableArray *selectedTagsIndex; // selected result

@property (nonatomic, assign, readonly) CGFloat contentHeight; // Used to calculate the height

  • (void)didSelectItem:(JCTagListViewBlock)block;

  • (void)reloadData;

@end

Author

李京城

License

JCTagListView is available under the MIT license. See the LICENSE file for more info.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.