Two weeks ago a temporary unjunction in Germany forced T-Mobile to sell unlocked iPhones but this decision was overturned yesterday by a German court:
In the two weeks since the temporary injunction was granted, T-Mobile sold the handsets without a network contract for 999 euros ($1,477; £719).
That price was a significant premium to the 399 euro cost for a phone with a two year T-Mobile contract.
T-Mobile has now promised that at the end of the two year contracts it will unlock the phones at no charge.
Despite the best efforts of Apple and the phone companies to tie consumers to one provider, programmes have been circulating online that allow users to unlock their iPhone so that it can be used on any network.
Apple in turn has warned that hacking into the phone's software could render the phones "permanently inoperable" when it releases software updates.