An NSInteger has the method stringValue that can be used even with a literal NSString *integerAsString1 = [@12 stringValue]; NSInteger. Try this: NSMutableString *myWord = [[NSMutableString alloc] init]; for (int i=0; iappendString:[NSString. intValue is not methods that exist on a NSInteger but on NSNumber.
ios How do I convert NSInteger to NSString datatype Stack Overflow
Since NSInteger is a typedef for a primitive type int on 32Bit and long on.
Not it is not since the NSInteger is signed casting to to unsigned be yield errors. The answer is given but think that for some situation this will be also interesting way to get string from NSInteger.
Hot Network Questions. Nazir Nazir 1, 20 20 silver badges 22 22 bronze badges.
Video: Nsinteger to string conversion NSData and NSString - Saving Data in iOS - kaida-fish.net
Viewed k times. Experiment: closing and reopening happens at 3 votes for the next 30 days….
Video: Nsinteger to string conversion Data Types and Conversions for iOS
Unicorn Meta Zoo 7: Interview with Nicolas.
Converting between types is a big problem if done wrong. If you convert the NSInteger. To NSNumber [NSNumber numberWithInteger:integer].
Format String Issue Using NSInteger
I have no idea why this is not the " recommended way ". I've therefore tried to at least adjust its contents in order to provide as much useful information for people looking for a quick solution that doesn't trigger warnings.
Why are you casting it from signed to unsigned? Setup a private space for you and your coworkers to ask questions and share information. But in a count you better use NSUInteger.