开发者

How to get a PID for a specific app in iphone?

开发者 https://www.devze.com 2022-12-14 19:30 出处:网络
How can I get ProcessInfo of a particular app (Not the same app/process)? I know that \"NSProcessIn开发者_开发知识库fo\" gives the details of the current process. But I would like to know is there any

How can I get ProcessInfo of a particular app (Not the same app/process)? I know that "NSProcessIn开发者_开发知识库fo" gives the details of the current process. But I would like to know is there any way to get the info of particular process say for example "Mail". If Mail is running in background, how can I get the info of it?

P.S: Requirement is on a jail-broken IPhone.

Thanks, Prathap.


On a jail-broken phone you should be able to use the system command together with ps to get the pid on any running processes. This link describes in detail how to use the system command.

0

精彩评论

暂无评论...
验证码 换一张
取 消