SUNBURN!!Sorry but leaving your pigger out in the sun with no shade is really irresponsible. Pigs can die form heatstroke and buning of the skin can cause skin cancer. I would recomend going to your vet as by your description it sounds quite severe and your pigger must be in pain. Please Please Please do not leave your pigger out in the sun again
Good Luck