Do I file 2 Part Year State returns? How do I allocate income? NC resident for 7 months then moved to SC. SAME JOB in SC all year. Should I file part Year NONRES for SC?

Need help determining which state is part Year resident and which state is part Year nonresident - SC gives me the choice to file as nonresident. I Lived in SC at end of 2017. Will I get a credit from SC for my NC return if I am part Year resident? I'm Having trouble allocating money correctly on TT. Can  someone explain in a little detail how to do it? TT asks for allocations on each state return for my W2 income, bank interest, alimony received, and 1099 G for State refund in 2016: not sure how to allocate. Do I change the autopopulated fields on each return to match what was actually earned WHILE LIVING in each State? The 1099G income is wanting allocations also. Will I receive a credit for taxes paid to SC?  Thank you for detailed response I appreciate any help 🙂