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
SBIcon: Difference between revisions - iPhone Development Wiki

SBIcon: Difference between revisions

From iPhone Development Wiki
(Created page with '{{occlass|library=SpringBoard.app}} '''SBIcon''' is a class representing an icon displayed by SpringBoard. It is not typically used directly; instead, its various subclasses are …')
 
m (→‎References: IPFHeader replacement)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{occlass|library=SpringBoard.app}}
'''SBIcon''' is a class representing an icon displayed by {{applink|SpringBoard}}. It is not typically used directly; instead, its various subclasses are used: [[SBApplicationIcon]], [[SBBookmarkIcon]], [[SBDownloadingIcon]], and [[SBDestinationHole]] (which is a blank space used when rearranging icons).
'''SBIcon''' is a class representing an icon displayed by SpringBoard. It is not typically used directly; instead, its various subclasses are used: [[SBApplicationIcon]], [[SBBookmarkIcon]], [[SBDownloadingIcon]], and [[SBDestinationHole]] (which is a blank space used when rearranging icons).
 
In iOS 5 Apple split up SBIcon, creating a separate class for [[SBIconView]], and just leaving SBIcon with behind the scenes stuff.
 
== Launching an Application using SBIcon ==
<source lang=objc>
[icon launchFromLocation:iconLocation];
</source>
 
For SBIcon locations, see [http://iphonedevwiki.net/index.php/SBIconView#SBIconViewLocation here].
 
== Getting an SBIcon ==
<source lang=objc>
SBIconController *controller = [%c(SBIconController) sharedInstance];
SBIconModel *model = [controller model];
SBIcon *icon = [model expectedIconForDisplayIdentifier:iconIdentifier];
</source>
 
== References ==
 
* Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/SpringBoard/SBIcon.h
{{occlass|library=SpringBoard.app|navbox=1}}

Latest revision as of 03:01, 11 August 2015

SBIcon is a class representing an icon displayed by SpringBoard. It is not typically used directly; instead, its various subclasses are used: SBApplicationIcon, SBBookmarkIcon, SBDownloadingIcon, and SBDestinationHole (which is a blank space used when rearranging icons).

In iOS 5 Apple split up SBIcon, creating a separate class for SBIconView, and just leaving SBIcon with behind the scenes stuff.

Launching an Application using SBIcon

[icon launchFromLocation:iconLocation];

For SBIcon locations, see here.

Getting an SBIcon

SBIconController *controller = [%c(SBIconController) sharedInstance];
SBIconModel *model = [controller model];
SBIcon *icon = [model expectedIconForDisplayIdentifier:iconIdentifier];

References