0

I am currently developing a Swift app with a mySQL backend. The app will consist of a user logging in and getting access to a UITableView.

To implement the login screen. My initial thought is to have the user login and save whatever username was successful as the UserDefault value.

Then I can pass that username as the parameter for fetching the UITableView using JSON.

  • Use UserDefaults for saving app preferences. Use CoreData for storing logged in user details – RajeshKumar R May 28 '19 at 18:06
  • 1
    But in a similar sense right, whichever username is last entered in a username TextField that is also correct in the DB is what is going to be stored right? –  May 28 '19 at 18:34
  • Possible duplicate of [Storing iOS app's user password and username](https://stackoverflow.com/questions/35802704/storing-ios-apps-user-password-and-username) – Joshua Francis Roman May 29 '19 at 02:08

0 Answers0