mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
[[UIApplication]] is a singleton object that represents the application. | [[UIApplication]] is a singleton object that represents the application. | ||
== UIApp == | |||
{{function signature | |||
|signature=extern UIApplication* UIApp; | |||
|firmware=2.0 – | |||
}} | |||
The method {{ObjcCall|UIApplication|sharedInstance|ClassMethod=1}} is equivalent to using external symbol <tt>UIApp</tt>. The latter is often used in debugging environments such as [[Cycript]] for convenience. | |||
== Event recording == | == Event recording == |
Revision as of 09:05, 12 December 2009
UIApplication is a singleton object that represents the application.
UIApp
Signature | extern UIApplication* UIApp; |
---|---|
Available in | 2.0 – |
The method +[UIApplication sharedInstance] is equivalent to using external symbol UIApp. The latter is often used in debugging environments such as Cycript for convenience.
Event recording
Main article: UIApplication/Event recording
UIApplication provides the -_addRecorder: and related methods to record user's events (as GSEvents). Event playback is also supported, so it can be used as a macro system.
References
- Official reference: http://developer.apple.com/IPhone/library/documentation/UIKit/Reference/UIApplication_Class/Reference/Reference.html
- Extra header: http://github.com/kennytm/iphone-private-frameworks/blob/master/UIKit/UIApplication2.h