I create a property countryNameInitials as NSMutableArray in AppDelegate.m interface and synthesize it. The purpose is to store global data to display in table view. In the table view controller:
#import "AppDelegate.h"
...
@implementation
#define AppDelegate [[UIApplication sharedApplication] delegate]
...
The problem is that I cannot use AppDelegate.countryNameInitials to access the data. Any idea?
The problem of accessing
countryNameInitialsis due to I declared the property in AppDelegate.m. After I move it to AppDelegate.h, errors are gone.Side notes:
1.
AppDelegateas the identifier name works for me. Naming conflicts suggested by @Vakio is not relevant.