- (void)viewDidLoad
{
// Do any additional setup after loading the view, typically from a nib.
//plist file path name
NSString *path = [[NSBundle mainBundle] pathForResource:@"Movies" ofType:@"plist"];
NSLog(@"path=%@", path);
//Dic load plist
NSDictionary *dic = [[NSMutableDictionary alloc] initWithContentsOfFile:path];
NSLog(@"dic count=%d", [dic count]);
NSLog(@"dic:%@", dic);
self.movieTitles = dic;
NSArray *array = [[self.movieTitles allKeys] sortedArrayUsingSelector
:@selector(compare:)];
NSLog(@"array count=%d", [array count]);
NSLog(@"array:%@", array);
self.years = array;
[super viewDidLoad];
}