i am trying to get index of an array through indexOfObject method as follows but when i try to log the value to test the index i get a garbage value.. for t
If you're using Swift and optionals make sure they are unwrapped. You cannot search the index of objects that are optionals.