Difference between revisions of "SBIconViewMap"

From iPhone Development Wiki
Jump to: navigation, search
(Quick explanation about SBIconViewMap)
 
m
 
(4 intermediate revisions by 4 users not shown)
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 — 9.2
 
}}
 
}}
  
Line 14: Line 14:
  
 
{{function signature
 
{{function signature
|signature=+(SBIconViewMap *)switcherMap;
+
|signature=+ (SBIconViewMap *)switcherMap;
|firmware=6.0 —
+
|firmware=6.0 — 6.1
 
}}
 
}}
  
== Reference ==  
+
== Reference ==
* Headers:
 
  
https://github.com/caughtinflux/include/blob/master/SpringBoard/SBIconViewMap.h
+
<references/>
 +
* Headers: https://github.com/caughtinflux/include/blob/master/SpringBoard/SBIconViewMap.h
  
 
{{occlass|library=SpringBoard.app|navbox=1}}
 
{{occlass|library=SpringBoard.app|navbox=1}}

Latest revision as of 23:04, 31 July 2016


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 — 9.2

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

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

Reference