I am trying to prevent multiple entries of the same value in Core Data. Right now, the entry is just a number (formatted as string). If my database has items 1, 2 , 3, 3, 4, I'd like to remove the second/duplicate entry of 3. While I would like to remove duplicate entries, I am only putting the values in a Table View, so I have tried to run the code below to remove duplicates in the array. However; this did not work.
numberData = results as! [NSManagedObject]
numberData = Array(Set(numberData))