【发布时间】:2009-12-16 05:12:18
【问题描述】:
是否可以在 Objective-C 中进行系统调用?
我有以下代码:
if (!system("ls -l")) {
NSLog(@"Successfully executed");
} else {
NSLog(@"Error while executing the command");
}
如何获得输出?
谢谢
【问题讨论】:
标签: objective-c unix system-calls