Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSString *string = @"5";
- int value = [string intValue];
- NSString *string = /* Assume this exists. */;
- int value = [string intValue];
- [@"7" intValue];
- [NSNumberFormatter numberFromString:@"7"];
- NSInteger stringToInt(NSString *string) {
- return [string integerValue];
- }
- NSString* intToString(NSInteger integer) {
- return [NSString stringWithFormat:@"%d", integer];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement