How to get all process info in objective-c under iOS system?

前端 未结 1 1272
野趣味
野趣味 2021-01-21 03:21

Under Mac OS, i could use GetCurrentProcess and GetNextProcessInfo to get process infos. But when i use the functions under iOS system,i got the link errorslike:

Undefi

相关标签:
1条回答
  • 2021-01-21 03:45

    Yes, there is no GetCurrentProcess or GetProcessInformation calls on iOS as Apple would prefer that each application live in it's own "sandbox" and know nothing about other apps running on the phone.

    But there may be ways to approximate what you are trying to do.

    Here are a few related questions that may help you out:

    Can we retrieve the applications currently running in iPhone and iPad

    How to get information about free memory and running processes in an App Store approved app? (Yes, there is one!)

    How to get the active processes running in iOS

    The answers to these questions may point you in the direction you'd like to head towards.

    Good luck!

    0 讨论(0)
提交回复
热议问题