Use the format string "img_%03d.jpg"
to get decimal numbers with three digits and leading zeros.
More Related Contents:
- Getting date from [NSDate date] off by a few hours
- Create multiple numbered variables based on a int
- Converting a string to an NSDate
- What’s the difference between a string constant and a string literal?
- Rounding numbers in Objective-C
- Make a float only show two decimal places
- Generate a random alphanumeric string in Cocoa
- Split an NSString to access one particular piece
- Convert Seconds Integer To HH:MM, iPhone
- Replacing one character in a string in Objective-C
- Formatting a number to show commas and/or dollar sign
- Finding a substring in a NSString object
- How to use NSScanner?
- Remove whitespace from string in Objective-C
- Using scanf with NSStrings
- NSString – Convert to pure alphabet only (i.e. remove accents+punctuation)
- Objective-C for Windows
- When should I use nil and NULL in Objective-C?
- Objective-C: Calling selectors with multiple arguments
- What’s the _ underscore representative of in Swift References?
- Why isn’t my weak reference cleared right after the strong ones are gone?
- Tutorials for using HTTP POST and GET on the iPhone in Objective-C [closed]
- How to convert int to NSString?
- How to add commas to number every 3 digits in Objective C?
- Support different orientation for only one view iOS 6
- insertNewObjectForEntityForName:
- What does Apple mean when they say that a NSManagedObjectContext is owned by the thread or queue that created it?
- Facebook iOS8 SDK build module error for FBSDKCoreKit
- “Initializer element is not a compile-time constant” why?
- Java printf using variable field size?