Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
SBApplication - iPhone Development Wiki

SBApplication

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

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];

References