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-08-2009, 09:38 AM   #3 (permalink)
AndrewSpeaksOut
Registered Member
 
AndrewSpeaksOut's Avatar
 
Join Date: Sep 2009
Location: Tennessee
Posts: 14
AndrewSpeaksOut is on a distinguished road
Default

Well, once I get rid of the punctuaion, I want to split the resulting string into individual components and place each component in an array.

Here's what I have now:

Code:
NSString *sourceData = source.text;
NSString *filteredData = [sourceData stringByReplacingOccurrencesOfString:@"," withString:@" "];
NSArray *components = [filteredData componentsSeparatedByString:@" "];
NSLog(@"%@", components);
But the way I'm doing it I get null entries in the array where the comma used to be.

Code:
2009-11-08 10:33:22.868 AppName[5619:207] (
    Andrew,
    "",
    Doug,
    "",
    Jim,
    ""
)
Maybe this is more of an array issue at this point I don't really know.
AndrewSpeaksOut is offline   Reply With Quote
 

» Advertisements
» Online Users: 607
19 members and 588 guests
.Snipe, Absentia, Aibo, anarkoly10, ayitiere, Brian965, haisergeant, Hassasin, hdeuwere, iphomh, matt2009, Paul Slocum, Rudy, skiril, skrew88, SLIC, Sophie100, st02197
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,319
Threads: 93,988
Posts: 402,409
Top Poster: BrianSlick (7,978)
Welcome to our newest member, st02197
Powered by vBadvanced CMPS v3.1.0

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