How to convert NSNumber to NSString

后端 未结 7 1303
孤城傲影
孤城傲影 2020-11-29 19:25

So I have an NSArray \"myArray\" with NSNumbers and NSStrings. I need them in another UIView so i go like this:



        
7条回答
  •  既然无缘
    2020-11-29 19:49

    or try NSString *string = [NSString stringWithFormat:@"%d", [NSNumber intValue], nil];

提交回复
热议问题