Iran is in most Muslim country so there are many restrictions. As for homosexuality not being a crime, that's a bit tricky because "Iran insists that it does not execute people for homosexuality, and that homosexuals who have been executed have either committed rape, murder, or drug trafficking"
Also "Transsexuality in Iran is legal if accompanied by a sex change operation"
http://en.wikipedia.org/wiki/LGBT_rights_in_IranMaking it compulsory for a person to be in a relation after going through such sex change operations doesn't make sense. If they want to ban anything, they can ban cigarette smoking, consuming alcohol,...and so on which are harmful to the health.
Banning hairstyles and outfits is just an extreme step and it's not worth living in such country where such things are banned. Banning should be done for things that are harmful to health/bad for a person.
I think Saudi Arabia Laws is even worse than Iran.
I to some extent agree with Saudi Arabia Laws as they may be extreme and strict but their laws for rape and theft make the country more safe.