You are considered to be a resident of Illinois for tax purposes if you maintained a legal place of residence in Illinois from January 1st through December 31st.
Note: You do not have to be physically present in Illinois the entire year to be considered a full-year resident.