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

SBIconViewMap: Difference between revisions

From iPhone Development Wiki
No edit summary
m (→‎Accessing the homescreen & switcher maps: -switcherMap is not there in iOS 7+)
Line 2: Line 2:
'''SBIconViewMap''' is a class that handles the recycling of [[SBIconView]]s. If icons need to be displayed in two different locations at the same time (e.g homescreen & app switcher), two different instances of SBIconViewMap need to be created.
'''SBIconViewMap''' is a class that handles the recycling of [[SBIconView]]s. If icons need to be displayed in two different locations at the same time (e.g homescreen & app switcher), two different instances of SBIconViewMap need to be created.


== Accessing the homescreen & switcher maps ==
== Accessing the icon maps ==


The homescreen's map can be accessed using the following method:
The homescreen's map can be accessed using the following method:


{{function signature
{{function signature
|signature=+(SBIconViewMap *)homescreenMap;
|signature=+ (SBIconViewMap *)homescreenMap;
|firmware=5.0 —
|firmware=5.0 —
}}
}}
Line 14: Line 14:


{{function signature
{{function signature
|signature=+(SBIconViewMap *)switcherMap;
|signature=+ (SBIconViewMap *)switcherMap;
|firmware=6.0 — 7.1
|firmware=6.0 — 6.1
}}
}}



Revision as of 11:12, 12 March 2015


SBIconViewMap is a class that handles the recycling of SBIconViews. If icons need to be displayed in two different locations at the same time (e.g homescreen & app switcher), two different instances of SBIconViewMap need to be created.

Accessing the icon maps

The homescreen's map can be accessed using the following method:

Signature + (SBIconViewMap *)homescreenMap;
Available in 5.0 —

Similarly, the switcher's map can be accessed using the following method:

Signature + (SBIconViewMap *)switcherMap;
Available in 6.0 — 6.1

Reference

  • Headers:

https://github.com/caughtinflux/include/blob/master/SpringBoard/SBIconViewMap.h