Thursday, May 5, 2011

A Static Array That can be used anywhere in Application

1. Create a new plist file

named it suppose DictArr


now add values in in this plist as


Now where you wants to access these value
use This code
NSString *path = [[NSBundle mainBundle] pathForResource:@"DictArr" ofType:@"plist"];
NSDictionary *dict = [[NSDictionary alloc] initWithContentsOfFile:path];
Arralbum=[dict objectForKey:@"ArrAlbum"];

No comments:

Post a Comment