The appointees to the board made by the several legislative bodies shall have been residents of the area encompassed by the district for at least 30 days prior to their appointment, and they shall also be residents of the city whose city council appointed them or, a resident of the county if appointed by the board of supervisors.