giving custom autosuggestion for uitextfield iphone

核能气质少年 提交于 2019-12-06 12:21:36
Hashim MH

For this purpose I used the project linked below: http://cocoacontrols.com/platforms/ios/controls/autocompletiontableview

Tatarasanu Victor

A sexy look for a autocomplete:

UITextField + UITextFieldDelegate http://www.cocoacontrols.com/search?utf8=%E2%9C%93&q=wepopover

Using UITableView you keep the data and apply an predicate on:

  • (BOOL) textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string

I didn't attach source code because isn't general and might confuse you.

Saad

Make an array of NSString, and search the typed string in UITextfield delegate method textChanged:, then print strings in a tableView.

In fact this will work like a UISearchBar.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!