开发者

How Remember Me for email id Works

开发者 https://www.devze.com 2023-03-14 23:11 出处:网络
I have cre开发者_StackOverflow中文版ated one Login Screen where user enter their mail id. But i want to insert one functionality where it should list the mail id automatically when user type first ch

I have cre开发者_StackOverflow中文版ated one Login Screen where user enter their mail id.

But i want to insert one functionality where it should list the mail id automatically when user type first character of mail id


There is one way. I don't know how much feasible it is. So the Idea is : You can store somewhere all the email id after log in success. For example in sqlite database. Now, Implement Notification center for "UITextFieldTextDidChangeNotification" and search for the character in database when user start typing in TextField and show UITableview underneath UITextField with match results (which start from entered character).

When user tap on any cell of Tablview hide tableview and take that cell label value in UITextField. That's it. Hope this logic work.


You can save the emaid id in UserDefaults & use it whereever you want

0

精彩评论

暂无评论...
验证码 换一张
取 消