mNo edit summary |
m (parental control.) |
||
Line 8: | Line 8: | ||
== Launching an SBApplication == | == Launching an SBApplication == | ||
To launch an SBApplication you | To launch an SBApplication you can use [[SBUIController]]: | ||
<source lang="objc"> | <source lang="objc"> | ||
[[SBUIController sharedInstance] activateApplicationAnimated:app]; | [[SBUIController sharedInstance] activateApplicationAnimated:app]; | ||
</source> | </source> | ||
Note that this method will not respect parental control. You can look up the list of restricted apps using <tt>-[</tt><tt>[[SpringBoard]] parentalControlsDisabledApplications]</tt>, however. | |||
== References == | == References == |
Revision as of 19:22, 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 can use SBUIController:
[[SBUIController sharedInstance] activateApplicationAnimated:app];
Note that this method will not respect parental control. You can look up the list of restricted apps using -[SpringBoard parentalControlsDisabledApplications], however.
References