Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let myarray = UserDefaults.standard.stringArray(forKey: "selectArray") ?? [String]()
- for (index, value) in myarray.enumerated() {
- print("(index): (value)")
- if index == 0{
- listItem = value
- print(listItem)
- }else
- {
- CuisineItem = value
- print(CuisineItem)
- }
- }
Add Comment
Please, Sign In to add comment