See the NSString Class Reference.
NSString *string = @"5";
int value = [string intValue];
More Related Contents:
- How can I create static library and can add just .a file on any project in ios
- How to parse JSON response to show Image and Webview.
- Label doesn’t show text
- Explaining difference between automaticallyAdjustsScrollViewInsets, extendedLayoutIncludesOpaqueBars, edgesForExtendedLayout in iOS7
- How to change the background color of a UIButton while it’s highlighted?
- File is universal (three slices), but it does not contain a(n) ARMv7-s slice error for static libraries on iOS, anyway to bypass?
- iOS Universal Links are not opening in-app
- How do I change my iOS applications’ entitlements?
- Storyboard doesn’t contain a view controller with identifier
- Importing Project-Swift.h into a Objective-C class…file not found
- How to ENABLE_BITCODE in Xcode 7?
- Objective C NSString* property retain count oddity
- How to add a border just on the top side of a UIView
- Understanding performSegueWithIdentifier
- ld: file not found: linker command failed with exit code 1
- Failed to instantiate the default view controller for UIMainStoryboardFile ‘Main’ – perhaps the designated entry point is not set?
- Only ONE VIEW landscape mode
- How can I use IBOutletCollection to connect multiple UIImageViews to the same outlet?
- Linker Command failed with exit code 1 (use -v to see invocation), Xcode 8, Swift 3
- UICollectionView Set number of columns
- Xcode MyProjectName-Bridging-Header.h does not exist
- Record audio and save permanently in iOS
- How can I programmatically determine if my app is running in the iphone simulator?
- iPhone app under test crashes after a few days
- How do you enable ARC project-wide in Xcode 4.2
- iphone image captured from camera rotate -90 degree automatically
- Xcode debugger doesn’t print objects and shows nil, when they aren’t
- UISlider that snaps to a fixed number of steps (like Text Size in the iOS 7 Settings app)
- Xcode 6: can’t connect any IBOutlet to ViewController
- Setting up UIScrollView to swipe between 3 view controllers