Tag: 系统

我可以在iOS中使用system()吗?

我想看看所有使用system("ps x");处理的运行system("ps x"); 或类似的function。然后用system("kill xxxx"); kill不需要的进程system("kill xxxx"); ..有可能在iOS?

如何将MGRS转换成十进制度数

我正在做一个iPhone应用程序。 我想我的应用程序将MGRS坐标转换为十进制度。 如何以编程方式执行此操作?

在越狱的iPhone上,我如何以root身份运行命令?

我想在Xcode中使用system调用以root身份login。 我尝试这个代码没有成功: System("su"); System("alpine"); 要么 System("su root"); System("alpine"); 要么 System("su root alpine"); 当我谷歌我来知道这是使用NSTask或NSPipe 。 任何人都可以告诉我如何使用NSTask和NSPipe来运行多个system命令? 请给我一些关于这个或另一种方法来做这个提示。 我在越狱的iPhone上使用这个应用程序。 一些更多的细节在这里 。

如何从系统获取日志();?

有没有办法从系统()获取日志? 所以当我做system("open com.apple.nike"); 我应该得到Couldn't open application: com.apple.nike. Reason: 8, application disabled or restricted Couldn't open application: com.apple.nike. Reason: 8, application disabled or restricted 。 这将在我的iOs 7设备上运行 谢谢 编辑:/ /这是新的代码,但它不会工作,我会得到 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'launch path not accessible' *** First throw call stack: NSString *bundleID = @"com.apple.nike"; NSTask *task = [[NSTask […]

如何获得在iOS中运行的活动进程

我如何以编程方式获取在iOS的后台运行的活动进程,CPU和内存使用情况?