Friday 7 December 2012

How to create an array with Dictionaries?

I just need some help in creating an array which can store multiple dictionaries. I have :
.h
NSArray * projects;
NSDictionary *project1;
NSDictionary * project2;
.m
projects = /* What should I write here to store the
              above two dictionaries in my array.   */


Answers

projects = [[NSArray alloc] initWithObjects:project1, project2, nil];

 

No comments:

Post a Comment