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
UIApplication: Difference between revisions - iPhone Development Wiki

UIApplication: Difference between revisions

From iPhone Development Wiki
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

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