UIApplicationState

来源:互联网 发布:linux usb无线网卡 编辑:程序博客网 时间:2024/06/05 02:39

The running states of an app  app的运行状态

Declaration

SWIFT

enumUIApplicationState : Int { case Active case Inactive case Background}

OBJECTIVE-C

typedefenum : NSInteger { UIApplicationStateActive,UIApplicationStateInactive,UIApplicationStateBackground } UIApplicationState;

Constants

  • UIApplicationStateActive

    The app is running in the foreground and currently receiving events.

    APP在前台运行并可以接收到事件


  • UIApplicationStateInactive

    The app is running in the foreground but is not receiving events. This might happen as a result of an interruption or because the app is transitioning to or from the background.

    APP在前台运行但是不能接收到事件。这可能是由中断导致的,或是因为APP正在过渡或者形成背景

  • UIApplicationStateBackground

    The app is running in the background.

    APP正在后台运行


0 0
原创粉丝点击