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 04-09-2009, 06:14 AM   #1 (permalink)
emergination
New Member
 
Join Date: Apr 2009
Posts: 3
emergination is on a distinguished road
Red face Checking NSString for numbers and substrings?

I'm new to iPhone development and Objective-C. I'm sure you get a lot of that here.

Anyway, I need to do a couple checks on a string. First I need to make sure there aren't any numbers in it. Then I need to make sure it doesn't contain a few substrings ('jpg', 'gif', 'png'). It looks like rangeOfString is what I want, but I'm not comfortable with Objective-C yet and I was hoping somebody could show me the best way to do this.

Thanks!
emergination is offline   Reply With Quote
 

» Advertisements
» Online Users: 435
19 members and 416 guests
7twenty7, baja_yu, BdR, BumChinBooth, chiataytuday, dansparrow, dany_dev, demas, Duncan C, flashharry, kukenwa, muhimranss, nor9849, QuantumDoja, Raffaello, themartist, v1n2e7t, WeaselPig, yvonneolivia
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,633
Threads: 94,090
Posts: 402,805
Top Poster: BrianSlick (7,990)
Welcome to our newest member, nor9849
Powered by vBadvanced CMPS v3.1.0

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