m (Created page with 'SBApplication is a class representing the application screen on the {{applink|SpringBoard}}. SBApplication is a subclass of SBDisplay. See SBDisplay for more info. =…') |
mNo edit summary |
||
Line 6: | Line 6: | ||
SBApplication* app = [[SBApplicationController sharedInstance] applicationWithDisplayIdentifier:@"com.yourcompany.appname"]; | SBApplication* app = [[SBApplicationController sharedInstance] applicationWithDisplayIdentifier:@"com.yourcompany.appname"]; | ||
</source> | </source> | ||
== Launching an SBApplication == | |||
To launch an SBApplication you need to use [[SBUIController]]: | |||
<source lang="objc"> | |||
[[SBUIController sharedInstance] activateApplicationAnimated:app]; | |||
</source> | |||
== References == | |||
* Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/SpringBoard/SBApplication.h | |||
{{occlass|library=SpringBoard.app|navbox=1}} | {{occlass|library=SpringBoard.app|navbox=1}} |
Revision as of 07:34, 25 October 2009
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