$$\ce{Cr2O7^2-(aq) + 14H+(aq) + 6I-(aq) -> 2Cr^3+(aq) + 3I2(aq) + 7H2O(l)}$$
Two chromium atoms gain 3 electrons each. They go from $0$ to $3+$
Similarily, 6 iodine atoms go from $-1$ to $0$, thus gaining one electron. However, my textbook says that iodine has lost electrons. How?
It went from negative to positive, i.e. from $-1$ to $0$, just like chromium from $0$ to $+3$.