I have an application in which I am entering values in database in integer type. I have a tableview with 7 rows in it from Sunday to Saturday. When user selects Sunday and clicks on the save button an integer value of 0 is entered in the days table with an id.
If the user selects Monday and Tuesday and clicks on the save button then integer values of 2 and 3 are entered in the database for that particular id. This is working fine. But the problem is I want to fetch these integer values and display string values in a label.
i.e for a particular id if 1 and 2 is entered in database then in the label Sunday, Monday should be displayed.
You can enum like below
and use switch case in that pass that your integer