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.
== Parameters for UIKit applications ==
UIApplicationMain recognizes the following these special flags:
{| class="wikitable"
|-
! Flag
! Purpose
|-
| <tt>-BuildDefaultPNG</tt>
| Write the default PNG image to <tt>~/Library/Caches/AppSnapshots/''BundleID''.png</tt><br />(by calling <tt>-[UIApplication _writeApplicationDefaultPNGSnapshot]</tt> on start up).
|-
| <tt>-RegisterForSystemEvents</tt>
| Allow this app to receive system events which normally should be received by SpringBoard.
|}


== Event recording ==
== Event recording ==

Revision as of 17:41, 26 November 2009

UIApplication is a singleton object that represents the application.

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