Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (1)
School of occupation education (Sha Tin)
no vote
Application background from iOS 4, you can design your app to stay suspended in memory when the user presses the home key. Even if the application is in memory, its operation is suspended until the user starts it again. Or they? Of course, there are exceptions! In some cases, the application can run some operations in the background. This tutorial will teach you how and when to use (almost) all of these background operations. There are important restrictions on using background operations. It's not a magic solution to get "real" multitasking IOS. Most applications still stop completely when the user switches to another application. Your app is only allowed to stay in very special situations, playing audio in the background, getting location updates, downloading new apps and handling problems with newsstands, VOIP phones. If your app doesn't need to do any of these things, then you're out of luck, with one exception: all apps get 10 minutes to complete anything they're doing before it's really suspended. This background may not suit you. But if so, keep reading! You will soon learn that there are five basic background modes available to you on IOS. This project you will build in this tutorial is a simple tag, each tag shows one of the modes of background application capability - listening for incoming voice IP connection from continuous playing audio. Let's get started! Before the key technology mining project, here is a quick overview of five basic background modes available on IOS: play audio: the app can continue to play and / or record audio in the background. Receive location updates: applications can continue to get callbacks as device location changes. Perform finite length tasks: in the case of generic "whatever it is," applications can run arbitrary code in a limited amount of time. Process: specific to the newsstand suite download application, the application can download content in the background. Provide voice over IP (VoIP) services: applications can run any & nbsp; & nbsp; code in the background. Of course, apple limits its use, so that your application must provide VoIP service, too.
ivest1516
2016-08-23
0
1
No more~