Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Bosstone

macrumors newbie
Original poster
Feb 26, 2009
2
0
Hi folks,

I have serious problems passing a NSMutableArray between 2 Views.

the Array will be sent via:

Code:
controller.showData = [arryData objectAtIndex:indexPath.row];
controller.delegate = self;
controller.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentModalViewController:controller animated:YES];

[controller release];
controller = nil

and received:

Code:
-(void)viewDidLoad {

NSLog(@"Data in Array: %@", showData);

}

In the View where the NSMutableArray should be received, I have made

@property (retain, nonatomic)NSMutableArray *showData;

@synthesize showData;

The NSLog - displays Data - but not in Form of NSMutableArray but in in Form of NSCFString... I could now split this string into a NSMutableArray again (with componentsseparated...) but I will get an Warning that "showData" (NOW it is NSMutableArray) may not recognise (componentsSeparated...)

Does anybody has a clue why this strange behavier happens?

Thanks for your Advice!

Stefan
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.