If the string is a human readable representation of a number, you can do this:
NSInteger myInt = [myString intValue];
Related Contents:
- AES Encryption for an NSString on the iPhone
- Converting HEX NSString To NSData
- Is it possible to include a quotation mark as part of an nsstring?
- How to get the size of a NSString
- UILabel – string as text and links
- Objective-C: Find numbers in string
- How do I use the NSString draw functionality to create a UIImage from text
- How to create subscript characters that’s not in Unicode in iOS
- Find all locations of substring in NSString (not just first)
- How to detect iPhone 5 (widescreen devices)?
- Understanding reference counting with Cocoa and Objective-C
- Faster alternative to glReadPixels in iPhone OpenGL ES 2.0
- Install Xcode 3.2.3 w/ iPhone SDK 4, get “Base SDK missing”, can’t see other SDKs
- Get Exif data from UIImage – UIImagePickerController [duplicate]
- “wait_fences: failed to receive reply: 10004003”?
- How to intercept click on link in UITextView?
- iPhone – UILabel containing text with multiple fonts at the same time
- How do I draw a line on the iPhone?
- Change iOS app’s language on the fly
- Get notification when NSOperationQueue finishes all tasks
- Iphone SDK dismissing Modal ViewControllers on ipad by clicking outside of it
- iOS Autolayout – How to set two different distances between views, depends on the screen height
- UILabel updating stops during scrolling UIScrollView
- Simultaneous AVCaptureVideoDataOutput and AVCaptureMovieFileOutput
- How can I programmatically force-stop scrolling in a UIScrollView?
- Uploading Video with iPhone
- Creating a JSON Store For iPhone
- Client/Server GKSessions
- How To add custom View in map’s Annotation’s Callout’s
- How to open preferences/settings with iOS 5.1?
- addSubview animation
- Can i pop to Specific ViewController?
- Changing the background color of a UIAlertView?
- Round corners on UITableView
- Change color of UISwitch in “off” state
- How to give space between two cells in tableview?
- How to set the text of a back button on a UINavigationBar? [duplicate]
- ApplicationWillTerminate in iOS 4.0
- How to create project templates in Xcode 4
- How to create global functions in Objective-C
- How to get iPhone crash log from customers?
- MPMediaItems raw song data
- iOS – How to limit the MapView to a specific region?
- iOS Tests/Specs TDD/BDD and Integration & Acceptance Testing
- Xcode 4 says “finished running ” on the targeted device — Nothing happens
- iphone Core Data Unresolved error while saving
- UIBarButtonItem: target-action not working?
- What is the best way to create a shadow behind a UIImageView
- duplicate symbols for architecture armv7
- How to decode the Google Directions API polylines field into lat long points in Objective-C for iPhone?