Resolving undeclared Identifier from Class
===

I have a Class, ArrayStates, that populates an array of the names of the US States.


    #import "ArrayStates.h"
    @implementation ArrayStates
    @synthesize listOfStates;

    NSMutableArray *listOfStates;
    - (void)viewDidLoad {
        //---initialize the array---
        listOfStates = [[NSMutableArray alloc] init];
        //---add items---
        [listOfStates addObject:@"ALABAMA"];


        [listOfStates addObject:@"WYOMING"];
        // [super viewDidLoad];
    }

If in the body program (.h) I

    #import "ArrayStates.h"

Why am I getting "Undeclared Identifier" when I try and reference "listOfStates" as in

    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
    {
    return [listOfStates count];
    }

