Passing array to another class - Objective C

Posted by Darko Hebrang on Stack Overflow See other posts from Stack Overflow or by Darko Hebrang
Published on 2010-05-26T20:22:12Z Indexed on 2010/05/26 20:31 UTC
Read the original article Hit count: 228

Filed under:
|

I manage to pass the following array from MessagesTableViewController.m to arraySelectedCategory in another class called MessageDetailViewController.m:

self.messageDetailViewController.arraySelectedCategory =
        [[NSMutableArray alloc] initWithObjects:@"Value 1",@"Value 2", @"Value 3", nil];

but how do I hand over an array stored in: NSMutableArray *categories;

self.messageDetailViewController.arraySelectedCategory = ?????

Thanks!

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about arrays