之间传递NSMutableArray我有两个视图控制器名称RootViewController和SecondViewController。在FirstViewController我有这样的NSMutableArray在两个UIViewController的
@interface RootViewController : UITableViewController {
NSMutableArray *allClasses;}@property (nonatomic,retain) NSMutableArray *allClasses;
在RootViewController的我填充的UITableView与内allClasses
所有对象在我SecondViewController我有
@interface SecondViewController : UIViewController <UITextFieldDelegate,UIPickerViewDelegate> {
NSMutableArray *arrayStrings;}
我有增加了新的方法NSString到arrayStrings。我的目标是通过尝试类似于allClasses = arrayStrings的方法将arrayStrings传递给RootViewController。这样,当RootViewController被加载时,它可以填充新的信息。
我如何才能完成这项任务?