You can't do that. There is no Public API is provided by Apple to do so.
If you are looking for Private API, please check this post
题
How do you find out what current active application you are in or if you are in the springboard's homepages?
解决方案
You can't do that. There is no Public API is provided by Apple to do so.
If you are looking for Private API, please check this post