Latest 0.0.1
Homepage https://github.com/zoonooz/ZFTokenField
License MIT
Platforms ios 7.1, requires ARC
Authors

iOS custom view that let you add token view inside like NSTokenField

ZFTokenField

Installation

pod 'ZFTokenField'

Usage

ZFTokenFieldDataSource

You need to implement these in your datasource class

  • lineHeightForTokenInField:tokenField: return desire line height.
  • numberOfTokenInField: return number of token that you want to display.
  • tokenField:viewForTokenAtIndex: return view that you want to display at specify index

ZFTokenFieldDelegate

  • tokenMarginInTokenInField: your prefered margin, default is 0
  • tokenField:didRemoveTokenAtIndex: get called when user deletes token at particular index.
  • tokenField:didReturnWithText: get called when user hits return with text.
  • tokenField:didTextChanged: get called when user changes text.
  • tokenFieldDidBeginEditing: get called when user begins edit the field.
  • tokenFieldShouldEndEditing: get called to ask if the field should end editing.
  • tokenFieldDidEndEditing: get called when user stops edit the field.

Author

Amornchai Kanokpullwad, [email protected] @zoonref

License

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

Latest podspec

{
    "name": "ZFTokenField",
    "version": "0.0.1",
    "summary": "iOS custom view that let you add token view inside like NSTokenField.",
    "homepage": "https://github.com/zoonooz/ZFTokenField",
    "license": "MIT",
    "authors": {
        "Amornchai Kanokpullwad": "[email protected]"
    },
    "social_media_url": "http://twitter.com/zoonref",
    "platforms": {
        "ios": "7.1"
    },
    "source": {
        "git": "https://github.com/zoonooz/ZFTokenField.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "Classes",
        "Classes/**/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This