I manage to pass the following array from MessagesTableViewController.m to arraySelectedCategory in another clas开发者_如何学运维s 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!
I take it that you want a copy of the categories array?
self.messageDetailViewController.arraySelectedCategory = [categories copy];You can use NSUserDefaults. The value can be used in whole program.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论