How to access/print an NSMutableArray element from one view to another view?
I have an NSMutableArray named mArray in view1 and it stores some strings. Now I want to access/print/compare these elements in view2 . Please guide me. write property synthesize for marray in view1 class.Then create view1 object in the view2 and use as view1object.marray Suggestion: You could put the array in your Controller class,where they both could access. It is always better to have sharable data in Controller then views if data has to be shared among views. view1.mArray should do it. Pls note to @synthesize the mArray in view1 . To print the array in console NSLog(@"mArray from view 1