If the string is a human readable representation of a number, you can do this:
NSInteger myInt = [myString intValue];
More Related Contents:
- AES Encryption for an NSString on the iPhone
- Converting HEX NSString To NSData
- UILabel – string as text and links
- Is it possible to include a quotation mark as part of an nsstring?
- Objective-C: Find numbers in string
- How do I use the NSString draw functionality to create a UIImage from text
- iphone sdk – Remove all characters except for numbers 0-9 from a string [duplicate]
- What is the maximum length of an NSString object?
- Find all locations of substring in NSString (not just first)
- How to get the size of a NSString
- How to create subscript characters that’s not in Unicode in iOS
- NSString: newline escape in plist
- iPhone XMLRequest
- URLWithString: returns nil
- How to know if a UITextField in iOS has blank spaces
- How to know if a UITextField in iOS has blank spaces
- Can we retrieve the applications currently running in iPhone and iPad
- How to parse a date string into an NSDate object in iOS?
- Calculate new coordinate x meters and y degree away from one coordinate
- UIImage rounded corners
- Parsing JSON dates on IPhone
- Link to resources inside WebView – iPhone
- How to draw a custom UIView that is just a circle – iPhone app
- iOS device orientation disregarding orientation lock
- Get location name from Latitude & Longitude in iOS
- How can I detect a double tap on a certain cell in UITableView?
- iphone/ipad orientation handling
- Adding Unit Tests to an already existing project?
- iPhone read/write .plist file
- UISwitch in a UITableView cell