Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 27, 2009, 02:32 PM   #1
ross.32
macrumors 6502
 
Join Date: May 2007
Remove leading character from an NSString

I know there has to be a really simple way to do this, but I can't figure it out.

I have a bunch of radar site NSStrings (such as KTLX or KDET). I need a method to remove the first letter (so a method that would return TLX or DET).

Thanks!
__________________
MacBook Pro 2.6GHz - iPhone 3GS (32GB)

Storm Spotter App for iPhone (http://www.stormspotterapp.com)
ross.32 is offline   0 Reply With Quote
Old Jun 27, 2009, 02:38 PM   #2
Guiyon
macrumors 6502a
 
Join Date: Mar 2008
Location: North Shore, MA
Take a look at the "Dividing Strings" section of the NSString documentation.
__________________
Make life easier if you have a programming question!
http://www.sscce.org/
Guiyon is offline   0 Reply With Quote
Old Jun 27, 2009, 02:42 PM   #3
ross.32
Thread Starter
macrumors 6502
 
Join Date: May 2007
Wow that was really easy. Used -substringFromIndex:1

Thanks!
__________________
MacBook Pro 2.6GHz - iPhone 3GS (32GB)

Storm Spotter App for iPhone (http://www.stormspotterapp.com)
ross.32 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Leading zeros cpuin Mac Programming 8 Oct 12, 2013 03:14 PM
how to remove & from NSString Narendar Singh iPhone/iPad Programming 7 Dec 12, 2012 08:34 AM

Forum Jump

All times are GMT -5. The time now is 07:30 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC