UID is a unique ID given to each instance in the game.
IID is a number given to identify its order in a given object type.
You can have a Sprite and a Sprite2. They can both have an IID of 0 but never have the same UID.
What is it that you are trying to achieve? Yes, you could pick a sprite with iid=0 and find it's UID.