I have the following array.
NSArray *arrayDisplay = [[NSArray alloc] initWithObjects:@"Daily",
@"Weekly", @"Monthly", nil];
I need to use it in two views, I’m concerned that I may make changes and forget to change the other in the future. So I’d like to declare it once and reuse it.
How should I do this?
You can keep it as a property in a common object such as the application delegate.
Assuming its nonatomic,retain type property then access it like:
Although if you plan on changing it you might want an NSMutableArray.