Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maximbilan/ios-tag-list
iOS Tag List
https://github.com/maximbilan/ios-tag-list
ios ios-app list objective-c tag ui ui-components ui-kit
Last synced: 2 months ago
JSON representation
iOS Tag List
- Host: GitHub
- URL: https://github.com/maximbilan/ios-tag-list
- Owner: maximbilan
- License: mit
- Created: 2014-01-25T20:01:02.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-09-21T13:22:00.000Z (over 6 years ago)
- Last Synced: 2024-04-20T11:04:16.762Z (9 months ago)
- Topics: ios, ios-app, list, objective-c, tag, ui, ui-components, ui-kit
- Language: Objective-C
- Homepage:
- Size: 159 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
iOS Tag List
============A simple iOS control, the list of tags.
![alt tag](https://raw.github.com/maximbilan/ios_tag_list/master/img/img1.png)
## Using:
Add to your project the next source files:
TagList.h
TagList.m
TagView.h
TagView.m
UIColor+TagColors.h
UIColor+TagColors.m
You can add view in the Interface builder and set class to TagList or create in the code:
TagList *tagList = [[TagList alloc] initWithX:50.0 withY:50.0];
[self.view addSubview:tagList];
For filling data in the tag list, you should create an array and set it into tag list. For example:
NSArray *array = @[@"tag 1", @"tag 2", @"tag 3"];
[self.tagList createTags:array];
Besides that, if you need to handle tap on the tag, you should set selectors. For example:
[self.tagList setTouchTagSelector:@selector(touchTitleTag:)];
[self.tagList setTouchBackgroundSelector:@selector(touchTagOnBackground)];TouchTagSelector - handle tap on the tag event
TouchBackgroundSelector - handle touches out of the tags eventMore details you can find in the project sample.