How to get a PID for a specific app in iphone?
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.
精彩评论