In the Uk the "best" way is to pay a small unlocking fee to the network to start the unlocking procedure or in hindsight purchase a sim free unlocked version direct from Apple if thats an option open to you.
I use mine on payg but obviously if your on a contract then this is not an option.