Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c _Swift中的cmd_u/u函数_Objective C_Swift - Fatal编程技术网

Objective c _Swift中的cmd_u/u函数

Objective c _Swift中的cmd_u/u函数,objective-c,swift,Objective C,Swift,在Objective-C中,我喜欢写: printf("%s", __FUNCTION__) 或 如何在Swift中实现这一点?基本相同 println(__FUNCTION__) 当然,没有\u u cmd\u_ 也看到 println(__FUNCTION__)

在Objective-C中,我喜欢写:

printf("%s", __FUNCTION__)

如何在Swift中实现这一点?

基本相同

println(__FUNCTION__)
当然,没有
\u u cmd\u_

也看到

println(__FUNCTION__)