Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autocomplete email functionality in UITextField

My Image

I want to implement a same autocomplete email functionality as showing in above screen in my UITextField

Please suggest


1 Answers

Do as follows, 1)store the emails 2)When the user starts type the text in textField search the stored valu and display the values in UITableView

You should use the following delegate of UITextField

- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
like image 83
KingofBliss Avatar answered Sep 25 '26 01:09

KingofBliss



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!