Rupesh
Rupesh

Reputation: 2051

How Remember Me for email id Works

I have created 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

Upvotes: 0

Views: 95

Answers (2)

Swastik
Swastik

Reputation: 2425

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

Upvotes: 1

Deeps
Deeps

Reputation: 4577

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.

Upvotes: 3

Related Questions