2pods
Collection of extensions and utility classes by and for the developers at Intrepid Pursuits.
License: MIT
This pod provides a view controller for choosing and creating tags in the style of wordpress or tumblr. This tag picker was originally used in the Intrepid Pursuits app, Slate.
As used in Slate:
From example project:
PARTagPicker is available through CocoaPods. To install it, simply add the following line to your Podfile:
ruby
pod 'PARTagPicker'
To run the example project, clone the repo, and run pod install
from the PRTagPicker directory first.
Include #import <PARTagPicker/PARTagPickerViewController.h>
.
The basic setup is to create an instance of PARTagPickerViewController
, add it's view, and then add the controller as a child view controller.
The tags are passed in as NSString
objects in an array. Anytime you change the allTags
array, any existing chosenTags
are updated to use references to the new strings if they contain a match in the updated array. Otherwise they continue to point to the old strings.
allowsNewTags
boolean property on the controller.chosenTags
directly.- (void)tagPicker:(PARTagPickerViewController *)tagPicker visibilityChangedToState:(PARTagPickerVisibilityState)state
- (void)chosenTagsWereUpdatedInTagPicker:(PARTagPickerViewController *)tagPicker
This is still a work in progress. If you have suggestions or run into issues, please create an issue on git or tweet me @ThePaulRolfe.
.xib
s in the pod now. Oops!Paul Rolfe, [email protected], @ThePaulRolfe
PARTagPicker is available under the MIT license. See the LICENSE file for more info.
License: MIT