IF you moved to a different state during the year...you allocate the withdrawal $$ according to which state you were living in at the time the withdrawal was made.
____________*Answers are correct to the best of my knowledge when posted, but should not be considered to be legal or official tax advice.*