According to the North Carolina instructions:
A North Carolina Resident is an individual who is domiciled in North Carolina at any time during the tax year. If you resided in the state for more than 183 days in the state during the tax year, you will be considered a resident.
A Nonresident of North Carolina is an individual that was not domiciled nor maintain a permanent place of abode in North Carolina during the tax year.
A Part-Year Resident is an individual moved into or out of North Carolina during the tax year.
If one spouse is a resident and the other is not, file a nonresident return and include all income for both spouses. You will be able to allocate the income for the time you were a North Carolina resident.
For more information, see: