Guest User

Untitled

a guest
May 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. let myarray = UserDefaults.standard.stringArray(forKey: "selectArray") ?? [String]()
  2. for (index, value) in myarray.enumerated() {
  3. print("(index): (value)")
  4. if index == 0{
  5. listItem = value
  6. print(listItem)
  7. }else
  8. {
  9. CuisineItem = value
  10. print(CuisineItem)
  11.  
  12. }
  13. }
Add Comment
Please, Sign In to add comment