Xcode在UILabel中写入NSLog结果

use*_*987 0 iphone xcode label nslog uilabel

我用 NSLog(@"%@");

而NSLog的结果是'23204239423'我不解释你为什么......这只是一个例子.

我希望NSLog结果出现在UILabel中,是否可能?

我试过:Label.text = (@"%@");,它不起作用.

你知道我怎么做吗?

谢谢.

fir*_*eam 8

NSLog通常采用如下字符串:

NSLog(@"%@", string);
Run Code Online (Sandbox Code Playgroud)

所以只需这样做:

label.text = [NSString stringWithFormat:@"%@", string];
Run Code Online (Sandbox Code Playgroud)