You must set these properties before presenting the selector
// Turn on/off table index for items, default to NO
selector.useTableIndex = YES;
// Turn on/off search field at the top of the list, default to NO, only recommend for large list
selector.allowSearchControl = YES;
// Turn on/off displaying and storing of recent selected items.
// recentItemStorageKey : If you have multiple selectors in your app, you need to set different storage key for each of the selectors.
// maxNumberOfRecentItems : Defaults to 5.
selector.useRecentItems = YES;
selector.recentItemStorageKey = @"your_key";
selector.maxNumberOfRecentItems = 5;
If you decide to set imageUrl for your KNSelectorItem items. Then these images will be loaded using SDWebImage library. It will handle image caching and loading automatically.
KNMultiItemSelector is licensed under MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Features in the work
Custom UItableViewCell class
Custom row height
Highlighted search term in result rows
More language customization
Supports landscape orientation on iPhone
Option to use UISegmentedControl to switch modes
For bug report and suggestions to improve the library, please contact me through my Twitter @ntluan or my website kentnguyen.com
Don't forget to buy me a coffee ;)