Difference between revisions of "SBIconViewMap"

From iPhone Development Wiki
Jump to: navigation, search
(Quick explanation about SBIconViewMap)
 
Line 15: Line 15:
 
{{function signature
 
{{function signature
 
|signature=+(SBIconViewMap *)switcherMap;
 
|signature=+(SBIconViewMap *)switcherMap;
|firmware=6.0 —
+
|firmware=6.0 — 7.1
 
}}
 
}}
  

Revision as of 17:16, 29 July 2014


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 homescreen & switcher 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 — 7.1

Reference

  • Headers:

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