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, 05:27 PM   #7 (permalink)
StefanL
Registered Member
 
Join Date: Jul 2009
Location: Wien/Austria
Posts: 242
Default

Quote:
Originally Posted by StefanL View Post
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

I am not able to figure it out, but the NSMutableArray will be transformed into a NSCFString in my ShowViewController. As a workaround I am splitting the NSCFString into an Array...

Code:
NSArray *myWords = [showData componentsSeparatedByString:@","];
	
	NSString *test = [myWords objectAtIndex:1];
BR,

Stefan
StefanL is offline   Reply With Quote
 

» Advertisements
» Online Users: 272
22 members and 250 guests
ADY, AppAnnex, chemistry, fkmtc, HemiMG, her-ur, iDifferent, ilmman, leahov, MarkC, marto1914, nicko, padsoftware, pavanindira, Raffaello, sneaky, sojourner, syver, tathaastu, timle8n1, touchcream, ziocleto
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,219
Posts: 380,712
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

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