A former British colony , Cyprus became independent in 1960 following years of resistance to British rule .