0

I need get the UIApplication instance of the current front most app.I use [UIApplication sharedApplication] but get only the instance of SpringBoard, does any one know how can I do it?Thank you.

Suge
  • 2,808
  • 3
  • 48
  • 79

1 Answers1

1

Different processes (apps) live in different memory spaces. You can't access classes from other running applications from within the SpringBoard application. You'll need to inject your code into the app that you are trying to interact with.

nevyn
  • 7,052
  • 3
  • 32
  • 43