I have a UITableView
whose controller looks like this:
@interface FLWorkspaceViewController : UITableViewController
@property(nonatomic,retain) NSMutableArray* workspaces;
@end
I try to set that array in another controller:
for(NSDictionary* workspace in workspaces)
{
NSLog(@"%@",workspace);
[workspaceViewController.workspaces addObject:workspace];
}
[self.navigationController pushViewController:workspaceViewController animated:YES];
I've checked the values and they exist. When I count workspaces
in viewDidLoad
, it's 0. Why is this?