Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-09-2010, 03:28 PM   #6 (permalink)
StefanL
Registered Member
 
Join Date: Jul 2009
Location: Wien/Austria
Posts: 242
Default

Quote:
Originally Posted by seb_bue View Post
And check, if showData is declared as a NSArray or NSMutableArray.
Regarding the error message, it is declared as NSString, which is wrong.

Furthermore check, if changeProductText is called before viewDidLoad. Otherwise you will also get an error, if the array is undeclared.
Hi,

I am getting nuts...

Same situation, same result...

I am trying to pass the Variable showData from the ModalViewController to the ShowViewController:

In the ModalViewController I declare:

Code:
controller.showData = [arryData objectAtIndex:indexPath.row];
Where arryData/showData is a NSMutableArray

When I set a Breakpoint I can see that controller.showData is of type NSCFArray (in the ModalViewController (the parent view).

The Breakpoint in the ShowViewController shows that showData is type of NSCFString...

Can please, please, please someone tell my what I am doing wrong?

Thanks for your help and assistance...

ModalViewController:

Code:
ShowViewController *controller = [[ShowViewController alloc] initWithNibName:@"ShowViewController" bundle:nil];
	
	controller.showData = [[NSMutableArray alloc] initWithArray:arryData];
	
	controller.showData = [arryData objectAtIndex:indexPath.row];



	controller.delegate = self;
	
	controller.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
	[self presentModalViewController:controller animated:YES];
	
	[controller release];
	controller = nil;



BR,

Stefan

Last edited by StefanL; 02-09-2010 at 03:35 PM.
StefanL is offline   Reply With Quote
 

» Advertisements
» Online Users: 291
21 members and 270 guests
ADY, apatsufas, BdR, Diegan, djohnson, Duncan C, F_Bryant, glenn_sayers, Guthook, Herbie, ilmman, Joseph Nardone, Music Man, NSeven, Profile, rodgo, VikMyr, vogueestylee, yomo710, zbynda, ziocleto
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,876
Threads: 89,225
Posts: 380,708
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jorge599
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:02 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.