Deprecated UIApplication Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in iOS 3.0

proximitySensingEnabled

A Boolean value that determines whether proximity sensing is enabled. (Deprecated in iOS 3.0. The properties proximityMonitoringEnabled and proximityState of the UIDevice class are the replacements.)

@property(nonatomic, getter=isProximitySensingEnabled) BOOL proximitySensingEnabled
Discussion

YES if proximity sensing is enabled; otherwise NO. Enabling proximity sensing tells iOS that it may need to blank the screen if the user's face is near it. Proximity sensing is disabled by default.

Availability
  • Available in iOS 2.0 and later.
  • Deprecated in iOS 3.0.
Declared In
UIApplication.h

Deprecated in iOS 3.2

setStatusBarHidden:animated:

Hides or shows the status bar, optionally animating the transition. (Deprecated in iOS 3.2. Use setStatusBarHidden:withAnimation: instead.)

- (void)setStatusBarHidden:(BOOL)hidden animated:(BOOL)animated
Parameters
hidden

YES if the status bar should be hidden, NO if it should be visible. The default value is NO.

animated

YES if the transition to or from a hidden state should be animated, NO otherwise.

Discussion

The animation fades the status bar out or in at the top of the interface, depending on the value of hidden.

Availability
  • Available in iOS 2.0 and later.
  • Deprecated in iOS 3.2.
Declared In
UIApplication.h