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
SpringBoard (Class): Difference between revisions - iPhone Development Wiki

SpringBoard (Class): Difference between revisions

From iPhone Development Wiki
No edit summary
Line 11: Line 11:
== References ==
== References ==
* Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/SpringBoard/SpringBoard-Class.h
* Header: http://github.com/kennytm/iphone-private-frameworks/blob/master/SpringBoard/SpringBoard-Class.h
== Sending messages to SpringBoard ==
Since SpringBoard is UIApplication you can send messages like this: <tt>[[SpringBoard sharedInstance] aMethod]</tt>


{{occlass|library=SpringBoard.app|navbox=1}}
{{occlass|library=SpringBoard.app|navbox=1}}

Revision as of 22:18, 9 March 2010

SpringBoard is the singleton class that manages the SpringBoard application.

Monitoring Orientation of Top App

Whenever the orientation of the top application may be changed, -[SpringBoard noteUIOrientationChanged:display:] will be called. Therefore, you can hook this method to be notified of this info. The orientation (as angle in degrees) can be received with -[SpringBoard UIOrientation].

Sending messages to SpringBoard

Because SpringBoard inherits UIApplication you can send messages like this: [[SpringBoard sharedApplication] aMethod]

References