objective c - How do you convert an NSUInteger into an NSString? -


how convert nsuinteger nsstring? i've tried nsstring returned 0 time.

nsuinteger namescategoriesnsarraycount = [self.namescategoriesnsarray count];   nslog(@"--- %d", namescategoriesnsarraycount);   [namescategoriesnsarraycountstring settext:[nsstring stringwithformat:@"%d",    namescategoriesnsarraycount]];   nslog(@"=== %d", namescategoriesnsarraycountstring); 

when compiling support arm64, won't generate warning:

[nsstring stringwithformat:@"%lu", (unsigned long)mynsuinteger]; 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -