https://github.com/domness/dwtaglist
Create a list of tags from an NSArray to be show in a view with customisable fonts, colors etc.
https://github.com/domness/dwtaglist
Last synced: about 1 month ago
JSON representation
Create a list of tags from an NSArray to be show in a view with customisable fonts, colors etc.
- Host: GitHub
- URL: https://github.com/domness/dwtaglist
- Owner: domness
- License: mit
- Created: 2012-07-07T15:36:43.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2015-12-13T15:03:18.000Z (over 9 years ago)
- Last Synced: 2025-03-29T23:11:23.731Z (about 2 months ago)
- Language: Objective-C
- Homepage: http://twitter.com/domness
- Size: 417 KB
- Stars: 422
- Watchers: 25
- Forks: 93
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
DWTagList
=========Create a list of tags from an NSArray to be show in a view with customisable fonts, colors etc.

## Installation
Simple copy over `DWTagList.h` and `DWTagList.m` into your project and make sure you have linked the framework `QuartzCore.framework`.
You may then add tags to your view by the following lines of code:
// Initalise and set the frame of the tag list
tagList = [[DWTagList alloc] initWithFrame:CGRectMake(20.0f, 70.0f, 280.0f, 300.0f)];// Add the items to the array
NSArray *array = [[NSArray alloc] initWithObjects:@"Foo", @"Tag Label 1", @"Tag Label 2", @"Tag Label 3", @"Tag Label 4", @"Tag Label 5", nil];
[tagList setTags:array];// Add the taglist to your UIView
[self.view addSubview:tagList];## Customisation
In `DWTagList.m` there are a number of customisable options to change the layout and the aesthetics of the tags. These can be done via @properties, not all of them are there yet.
NOTE: In the future, these will be added as methods that can be used to customise the tags after initialisation.
## License
I have included the license in the `LICENSE` file. I've got it as the MIT license, mainly because I want people to do what they want with this library.
If you do something cool, or find any problems, please create a pull request and I will look at including any of your changes into this project.