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:29 AM   #2 (permalink)
orange gold
Gold Orange
 
orange gold's Avatar
 
Join Date: Sep 2008
Posts: 686
orange gold is an unknown quantity at this point
Default

i can show you how to remove the punctiation easily.. i dont understand the rest.. are you trying to detect a word and then put a space???
anyways...
lets say you have a UITextView called mytextfield1 ... if it has a comma in it.. you can replace that comma with a space.... (.m file)
Code:
NSString *temptextFieldName = mytextfield1.text;
temptextFieldName = [temptextFieldName stringByReplacingOccurrencesOfString:@"," withString:@" "];
[mytextfield1 setText:temptextFieldName];
you could even replace a comma with a carriage return (going to the next line) like this...

Code:
NSString *temptextFieldName = mytextfield1.text;
temptextFieldName = [temptextFieldName stringByReplacingOccurrencesOfString:@"," withString:@" \n"];
[mytextfield1 setText:temptextFieldName];
the \n is just like hitting the return/enter key

GOOD LUCK!
orange gold is offline   Reply With Quote
 

» Advertisements
» Online Users: 616
19 members and 597 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:22 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.