No edit summary |
mNo edit summary |
||
Line 5: | Line 5: | ||
== Monitoring Orientation of Top App == | == Monitoring Orientation of Top App == | ||
Whenever the orientation of the top application may be changed, <tt>-[SpringBoard noteUIOrientationChanged:display:]</tt> 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 <tt>-[SpringBoard UIOrientation]</tt>. | Whenever the orientation of the top application may be changed, <tt>-[SpringBoard noteUIOrientationChanged:display:]</tt> 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 <tt>-[SpringBoard UIOrientation]</tt>. | ||
== Sending messages to SpringBoard == | |||
Since SpringBoard is UIApplication you can send messages like this: <tt>[[SpringBoard sharedApplication] aMethod]</tt> | |||
== 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 16:30, 4 March 2010
This article is about the Objective-C class. For the application, see SpringBoard.app.
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
Since SpringBoard is UIApplication you can send messages like this: [[SpringBoard sharedApplication] aMethod]
References
Sending messages to SpringBoard
Since SpringBoard is UIApplication you can send messages like this: [[SpringBoard sharedInstance] aMethod]