Not totally true it was the President at the time (under pressure from Spain who were trying to avoid Catalonian independence) who made the statement, legal advice was spilt.
Although moving from one overlord to another seemed stupid to me, independence should mean independence.
Cameron told a lot of lies, pensions and currency are two very big ones. Europe was another.