In-depth analysis of iPhone multitasking requirements

Source: Internet
Author: User

In-depth analysisIPhone multitaskingThe requirement is that this article will introduce the content. Let's discuss it first. Apple fans know that whenIPhone1.0 peopleIPhoneNot SupportedMulti-taskSorry. Apple's explanation in HIG is that the screen is small and the memory is limited when it moves, and people can only interact with one application at a time.

RecentlyIPhoneThe project of the APP.Multi-taskThe processing has some feelings.

First, we will analyzeMulti-taskWhat are the requirements?

Quickly switch between several applications.

AsIPhoneThe installation of a large number of apps is just a pediatrics. If you don't care, the nine screens are full. AlthoughIPhoneThe speed of running the application is still very good, but it should be noted that the time in the mobile status is more valuable. If switching a program takes too much time, people will be anxious. In the early days, HIG specified that the application response time should not exceed 20 seconds-do not easily challenge people's psychological limits.

Run two or more applications at the same time.

The "run at the same time" mentioned here mainly refers to the ** side ****. For example, you can listen to songs and play games. Listen to the song and watch it. Do not challenge people's abilities too much-watch movies and read novels. People can use different senses on mobile terminals to enjoy different services.

Before iPhone iOS4.0 came out, even if there were no multitasking, Apple's iPhone 3G 3GS was selling well. Why?

For the first requirement: quickly switch the application. The solution provided by Apple is: 1. when the program exits, the user interface at this time should be retained; the system actively backs up data for the user at any time (such as games, document editing, etc.) 2. increase the speed of hardware.

It can be said that the reason why 3GS is selling well lies in the constant pursuit of speed by a generation of users.

For the second requirement: run multiple programs at the same time. In Apple's opinion, you can listen to your ipod and do other things. In principle, your service does not contain sound. Otherwise, the ipod will automatically pause until you exit other programs. So it can be said that Apple has not opened ports for the moment considering the hardware features.

In general, users' requirements are met to a certain extent, and compliance with this product is subject to hardware restrictions at this stage. As a result, the iPhone 4.0 is fully open to multi-task experience. Multi-task is not as simple as supporting or not. They have done a lot of meticulous work.

First, hardware performance indicators are comprehensively improved-This makes multitasking possible. This is why the 3G model is not supported.

Second, increase interactions. Double-click the home key to bring up multiple task bars. You can switch smoothly on any interface. Here, calling the physical button is the only option. Imagine that if you use gestures, then the application developer lacks a gesture. Choosing home also makes multi-task management highly dependent and stable.

Finally, Apple provides a very detailed guiding principle to help you avoid the problems caused by multiple tasks:

Apple's requirements for multi-tasking products-working in harmony with other applications in a multi-tasking environment-directly guides product designers to pay attention to the correct and restrained use of multi-tasking.

The following guiding principles can help our applications better appear in a multitasking environment:

1. interrupted or audio must be switched over.

2. start or stop the service from the background quickly and smoothly.

3. It should be reliable enough to run in the background.

Make the following preparations to achieve these three goals:

1. Wait for the preparation program to be paused or restarted. The multi-task function increases the possibility of suspending applications. In addition, AD and program switching will make the pause more frequent. The faster and more accurate storage of the user's application state is a requirement for the application.

Make sure that your interface can accommodate the status bar that is twice as high. For example, when there is a phone call, there will be a notification area that doubles the status bar. That is to say, your application cannot cause problems due to the emergence of the notification area.

3. Users are allowed to suspend use of applications as needed at any time. The game is used as an example to pause and quit the game application. When I come back, I need to continue the game screen just now.

4. Make sure that your audio service is suitable. Multi-task allows media to continue service in the background. It also requires that your audio service be able to pause or resume playing. To solve this problem, you must read the guiding article "Voice"-the user wants to use the audio service you provide, however, you do not need to be surprised with your special handling of the sound-for example, the notification sound and the bell sound. This will only cause confusion-Apple will not apply for it through your app.

5. Use the local notification PUSH Service. A program must be prepared to suspend the notification push at any time. If you use local push notifications, you need to read the relevant guidance documents-don't push all notifications-your users will crash because of meaningless notifications you push. (Generally, the message arrives, the event occurs, the new data request is downloaded, and the situation changes .)

6. Complete User Tasks in the background as appropriate. When people start a task, they want it to complete, even if they switch to another application. Therefore, if your program provides tasks similar to this, and such tasks do not require continuous attention, the program should be completed silently in the background, and a prompt will be given to the user after the completion.

As user needs grow along with the emergence of products and are targeted to meet user needs, Apple wants to achieve multi-tasking and split the needs, that is, not to draw a strong picture for itself, we have not been able to combat user enthusiasm. Such an approach is worth learning. A perfect product can only bring heavy pressure and excessive costs to the project.

Summary: in-depth analysisIPhone multitaskingI hope this article will help you!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.