zoonooz/ZFTokenField


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

License: MIT

Language: Objective-C

Keywords: ios, ios-ui, objective-c, token-field, tokenfield


ZFTokenField

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

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, amornchai.zoon@gmail.com @zoonref

License

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

Project Statistics

Sourcerank 5
Repository Size 82 KB
Stars 309
Forks 54
Watchers 18
Open issues 8
Dependencies 0
Contributors 1
Tags 1
Created
Last updated
Last pushed

Top Contributors See all

Amornchai Kanokpullwad

Packages Referencing this Repo

ZFTokenField
iOS custom view that let you add token view inside like NSTokenField.
Latest release 0.0.1 - Published - 309 stars

Recent Tags See all

0.0.1 November 15, 2014

Something wrong with this page? Make a suggestion

Last synced: 2016-11-24 16:04:37 UTC

Login to resync this repository