Appears there are a couple of origins out there...
One:
in a pig's eye - never, 'in your dreams', impossible - 'in a pig's eye' meaning 'never' seems to be an American development, since it is not used in the UK, and the English equivalent meaning never is 'pigs might fly', or 'pigs will fly'...