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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 03-19-2010, 10:40 PM   #10 (permalink)
cye
14 Year Old App Developer
 
Join Date: Mar 2010
Location: Texas
Posts: 242
cye is on a distinguished road
Default heres some code

Quote:
Originally Posted by Son of a Beach View Post
Show us the code. We can't comment on code we've not seen. Show us the relevant code now that you're adding objects to he array.

Code:
- (IBAction)toReviewPressed:(id)sender
{
	if (q == nil) {
		q = [[NSMutableArray alloc]init];
	} if (a == nil) {
       	a = [[NSMutableArray alloc]init];
	}

        objq = @"";
	obja = @"";
	
	[q addObject:objq];
	[a addObject:obja];
	
	
	i = 1;
}


- (IBAction)inputPressed:(id)sender
{	
	qText = [[NSString alloc] initWithFormat:qInput.text];
	aText = [[NSString alloc] initWithFormat:aInput.text];
	
	
	[[q objectAtIndex:i]setText:(NSString *) qText];
	[[a objectAtIndex:i]setText:(NSString *) aText];
	
	i++;
}
i have objq, obja, q, a, and i declared in the .h file
cye is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,548
Threads: 94,072
Posts: 402,699
Top Poster: BrianSlick (7,990)
Welcome to our newest member, mrtdmb
Powered by vBadvanced CMPS v3.1.0

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