Hey my tableview loads fine in simulator but when I test on device it displays nothing.
Ive tested it and it seems to be somewhere in my viewDidLoad method in my table view controller.
Why does it work in my sim AND not on my device????
here is my code:
Code:
- (void)viewDidLoad {
[super viewDidLoad];
NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"MyList" ofType:@"plist"];
NSMutableArray* array = [[NSMutableArray alloc] initWithContentsOfFile:plistPath];
//WHEN I USE THIS IT DISPLAYS FINE ON DEVICE. . . .
//NSMutableArray *array = [[NSMutableArray alloc] initWithObjects:@"test", @"Test2", @"test3", nil];
NSString *tempDic = @"test";
NSLog(@"tempDic: %@",tempDic);
self.myArray = array;
[array release];
}
Ive checked all my steps and I have no idea why it shows up in the simulator but not on device.
But also that if I create the array in code then it DOES show. . .