Loading

Thursday, May 5, 2011

A Static Array That can be used anywhere in Application

1. Create a new plist file


named it suppose DictArr

2.

now add values in in this plist as


3.

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