From iPhone Development Wiki
Revision as of 07:34, 25 October 2009 by KennyTM~ (talk | contribs)
Jump to: navigation, search

SBApplication is a class representing the application screen on the SpringBoard. SBApplication is a subclass of SBDisplay. See SBDisplay for more info.

Retrieving an instance of SBApplication

To retrieve a known instance, you must go through SBApplicationController. For example, if the display ID of the application is known, you can use:

SBApplication* app = [[SBApplicationController sharedInstance] applicationWithDisplayIdentifier:@"com.yourcompany.appname"];

Launching an SBApplication

To launch an SBApplication you need to use SBUIController:

[[SBUIController sharedInstance] activateApplicationAnimated:app];