项目
在 GitHub 查看
zoonooz/ZFTokenField
关于
iOS custom view that let you add token view inside like NSTokenField
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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 0tokenField: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.
探索相关项目
加载中…