APTokenField is a class that behaves similarly to the 'To:' field in iOS's MFMailComposeViewController. Similar functionality can be found in Three20 three20's TTPickerTextField
, but it's hard to use and requires integrating the entire Three20 framework into your app... so this is better :-). APTokenField has been tested on iOS 4.0 and and later (including iPad), and the code is released under the BSD 3-clause license. To find out more, check out the [project homepage] homepage.
- Add
APTokenField.h
andAPTokenField.m
into your project. - Add the
CoreGraphics
andQuartzCore
frameworks to your project. - Create an object that conforms to the
APTokenFieldDataSource
protocol to use as the data source for yourAPTokenField
instance. - Create an instance of an
APTokenField
, assign yourAPTokenFieldDataSource
to it'stokenFieldDataSoure
property then add the token field to your view hierarchy.
Copyright 2012. [Arash Payan] arash. This library is distributed under the terms of the [BSD 3-clause license] bsd ("BSD New" or "BSD Simlpified").
While not required, I greatly encourage and appreciate any improvements that you make to this library be contributed back for the benefit of all who use APTokenField.