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 11-16-2009, 12:32 PM   #2 (permalink)
ggekko
Registered Member
 
Join Date: Nov 2009
Posts: 4
ggekko is on a distinguished road
Default

I found a solution !


After a NSLog, I noticed that the parsed json object was not entirely loaded. I don't know why, but it seems that NSString objects have a limited size.
So I managed getting all that data into my NSString string by doing so :

Code:
	if(jsonString == nil)
	{
	jsonString = [[NSMutableString alloc] initWithData:data encoding:NSUTF8StringEncoding];

	}
	else {
		NSMutableString *temp_string = [[NSMutableString alloc] initWithString:jsonString];
		
		[jsonString release];
		jsonString = [[NSMutableString alloc] initWithData:data encoding:NSUTF8StringEncoding];
		[temp_string appendString:jsonString];
	
		[jsonString release];
		jsonString = [[NSMutableString alloc] initWithString: temp_string];
		[temp_string release];

	}

I know the code is not that clear, but I didn't find any other solution yet !


If anyone finds a better way, let me know !
ggekko is offline   Reply With Quote
 

» Advertisements
» Online Users: 553
13 members and 540 guests
.Snipe, baramuse, bignoggins, Domele, Farfalo, glennmd, HemiMG, ilmman, jaunsmith71, nilsajhmh, Speed, timchen, Touchmint
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,323
Threads: 93,989
Posts: 402,413
Top Poster: BrianSlick (7,978)
Welcome to our newest member, jaunsmith71
Powered by vBadvanced CMPS v3.1.0

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