Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void)createData {
- NSMutableArray *poolFixtures; //poolFixtures being the text within each cell of my table view.
- groupSections=[[NSMutableArray alloc] initWithObjects: @"Pool Stages", nil]
- poolFixtures=[[NSMutableArray alloc] init];
- [poolFixtures addObject:[[NSMutableDictionary alloc]
- initWithObjectsAndKeys:@This is a name",@"name",nil]];
- fixtureData=[[NSMutableArray alloc] initWithObjects: poolFixtures, nil];
- [poolFixtures release];
- Object obj = [[Object alloc] init];
- ViewController *vc = [[ViewController alloc] initWithNibName:@"NibName" bundle:nil];
- // this is a public property of the viewcontroller
- vc.array = [object methodThatReturnsArray];
- [self.navigationController pushViewController:vc];
- -(NSArray *)methodThatReturnsArray
- {
- NSArray* array = [[[NSArray alloc] init] autorelease];
- // some code here that adds to the usefulness of the array
- return array;
- }
Add Comment
Please, Sign In to add comment