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

Quote:
Originally Posted by seb_bue View Post
Where do you fill the Array with data?

showData = [[NSMutableArray alloc] init] creates a new and empty array.

The code seems to be right for me, if you fill the array between the first and second line.

The error says, that you try to call the method objectAtIndex from a String: [NSCFString objectAtIndex:]

If you copy the whole code, we can have a look at it.

Hi Seb,

thanks for your reply:

Code:
-(void)viewDidLoad {
	
	NSLog(@"New Array: %@", showData);
	
	
	NSString *branch =[showData objectAtIndex:0];
	
	NSLog(@"Die Firma: %@", branch);
	NSString *company = [showData objectAtIndex:1];
	NSString *name = [showData objectAtIndex:2];
	NSString *phone = [showData objectAtIndex:3];
	NSString *email = [showData objectAtIndex:4];
	NSString *price = [showData objectAtIndex:5];
	NSString *notes = [showData objectAtIndex:6];
	
	NSLog(@"The Branch: %@", branch);
	

}

- (IBAction) changeProductText:(NSMutableArray *) arryData{
	NSLog(@"array: %@", arryData);
	
	showData = [[NSMutableArray alloc]init];
	showData = arryData;
	
}
Thanks for your help! BR,

Stefan
StefanL is offline   Reply With Quote
 

» Advertisements
» Online Users: 358
19 members and 339 guests
ADY, apatsufas, chemistry, Duncan C, Fit4him, headkaze, HemiMG, MarkC, marto1914, Meoz, padsoftware, Promo Dispenser, Raffaello, sojourner, syver, tathaastu, tgjorgoski, Thrillhouse1919, ziocleto
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,221
Posts: 380,717
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:50 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.