NSW Premier Barry O'Farrell has resigned in the wake of controversy over his appearance at the Independent Commission Against Corruption.

NSW Premier Barry O'Farrell has resigned in the wake of controversy over his appearance at the Independent Commission Against Corruption.