Suge
Suge

Reputation: 2897

How to get the instance(UIApplication) of the front most application from SpringBoard tweak in iOS?

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.

Upvotes: 0

Views: 769

Answers (1)

nevyn
nevyn

Reputation: 7122

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.

Upvotes: 1

Related Questions