Handling of common tasks of iPhone man-machine interface (2)

Source: Internet
Author: User
Tags home screen

IPhoneMan/MachineInterfaceThe common task processing method is described in this article.ApplicationsExperience, then you will findIPhone applicationsYou can process many common tasks in different ways.

This section describes these common tasks from the perspective of man-machine interfaces. For more information about code implementation, see iPhoneApplicationsProgramming Guide. Continue to the previous section on how to handle common tasks of iPhone man-machine interfaces (1.

Enable push notification

When your application registers the "Apple push notification service", you can send a warning to the user when new data arrives, even if your application is not running. When a message is sent to an application that is not running, the device can notify the user in the following ways:

Update a tag on the application's home screen icon

Play alarm sound

Display a warning message

Alternatively, you can use these methods in combination. The user's reaction may be to start an application to process new data, or simply notice that new data is coming. To learn how to process push notifications in the code, please read the programming guide for the Apple push notification service .)

Note: the delivery of push notifications is not guaranteed. In addition, you can reject system notifications. The purpose of pushing notifications is to remind users that new data has arrived, rather than passing key data to your application.

The "notification" section in the built-in setup program provides the push notification settings for each application registered with the "Apple push notification service. For each application, the iPhone OS allows users to set whether to allow tags, sounds, and warning messages.

You should spend some time thinking about which type of events can attract the attention of users. Notifications should provide users with useful and operable information that they want even if they do not use your application.

After you confirm the events that users may be concerned about, you should also ask the user to decide what types of notifications should be generated for each event, if any ). If you cannot customize push notifications for your applications, users may be disturbed by notifications they are not interested in.

Users can select the type of notification they want to receive, so you should support all of the following three types:

Mark. Tag is the least disturbing Method for users. It tells users that new content they may be interested in appears. The icon is a small red oval and appears in the upper right corner of the main screen icon. You have no control over the appearance of the tag. It only contains numbers, not letters and punctuation marks.

The tag applies to telling users how many items are available for them to view. For example, the number in the tag indicates the number of unread messages, the number of new tasks, or the number of remote players currently playing the game.

Sound. You can provide custom warning sound or use built-in warning sound. If you have created a custom sound, make sure it is short, unique, and professional. For more information about the technical requirements for custom sound, see prepare custom warning sound in the Apple push notification service programming guide .) Note that when a notification is sent, you cannot force the device to vibrate. You can control whether a warning is triggered with vibration.

If the notification itself provides sufficient information for the user to take action, in this situation, it is very suitable to use a sound that is easy to recognize. For example, a collaborative task management system may have a unique voice when a Member's task is completed. Just hear this voice, and the user will know that the task has been completed.

Warning. Warning is a method that notifies a user of the most disturbing content. The name of your application is displayed at the top of the warning. below it is the message you sent, there are one or two buttons at the bottom of the warning. If you specify two buttons, the "close" button is displayed on the left, the "View" button is displayed on the right. You can click the "View" button to start your application while removing the warning ). If only one button is specified, only one "OK" button is displayed. Both the "close" button and the "OK" button close the warning and do not open your application.

Warning interrupts the user's workflow, so it is best to use it with caution and use it only to deliver brief and important messages about an event. In particular, do not include any advertisement content in your warning message.

Ensure application availability

An easy-to-useApplicationsUsers with obstacles should be allowed to use it successfully with the help of auxiliary programs or devices.IPhoneThe OS device has many features that allow all users to use the device more conveniently, such as visual voice mail, scaling, and voice control. You do not need to take any action in the application, and you can directly benefit from these features.

With VoiceOver, things become different. VoiceOver is Apple's innovative screen reading technology that allows users to control their devices without looking at the screen. To ensure that VoiceOver users can fully use your applications, you may need to provide custom information about the visual charts and controls on the user interface.

Fortunately, by default, UIKit controls and views are easy to access, so when you use these standard elements in a fully standard way, you only have a small amount of extra work to do, if any ). The higher the user interface customization level, the more custom information you need to provide, so that VoiceOver can correctly describe your application to users with visual impairment.

Important: To make your application accessible, you need to provide VoiceOver with the information it needs to help users use your application. You do not need to change the visual design of the user interface to adapt to VoiceOver.

Let yourIPhone applicationsIt is very correct to make it easy to be accessed by VoiceOver users. This approach also increases your user base and may help you meet availability Guidelines created by various authorities.

Provides the search function and displays search results.

UIKit provides a search bar control that allows you to display consistent startup search interfaces. However, you need to implement the search function in your application. For more information about the search bar, see the "search bar". For more information about how to process search results in code, see the UISearchDisplayController class reference .) To ensure that the search has a practical and convenient user experience, take some time to consider how to implement the search process and display the results.

Generally, you should:

Create an index for your data so that you can search at any time.

Filter local data in real time. Once the user starts to input the data, the result is displayed and the result range is gradually reduced as the user continues to input the data.

If possible, remote data is also filtered during user input. However, if the response time is greater than 1-2 seconds, must be permitted by the user.

The search box is displayed on the list or the index is displayed on the list.

Do not open a tab for search. Unless it is the main function in your application, it should be identified as a different pattern.

Although real-time data filtering can produce excellent user experience, it is not always feasible. If you cannot filter data in real time, you can click the "Search" button on the keyboard to start the search process. To do this, you must provide feedback on the search progress so that you can know that the search process has not stopped. One way is to display text results as soon as possible and display placeholder content for data that may require longer retrieval.

For example, on YouTube, a user clicks the "Search" button to initiate a video search. If the network connection speed is slow, YouTube will first display "loading ......" Message and rotation activity indicator to let the user know that the search is in progress. Then, YouTube will display a result list, where each line is filled with search text results such as the title and rating of the video), as well as cube custom images with dotted line outlines. As you browse the video Title List, the downloaded video thumbnail will gradually replace the original dotted-line cube. In this way, some search results are displayed to users when more data is still being downloaded, so that useful information can be provided to users in a timely manner.

If the data you process can be categorized into multiple different categories, you can provide a range bar. The range Bar contains up to four range buttons. Each button represents a category. For example, the mail program provides a range bar that allows users to concentrate their searches on the sender, recipient, or topic fields of the mail, or expand the search scope to include all fields. If the range bar can help users concentrate on their searches or greatly reduce the number of search results, consider using the range bar control. For more information about how to implement the range bar in your code, see UISearchBar class reference .)

Use user location information

Users like to be able to automatically mark content using their physical locations, or find friends nearby. Users also want to disable these features when they do not want to share their location with others. Users can choose to accept or deny access to their physical locations through "Settings"> "general"> "location service" Settings.

If the location service is disabled, and the subsequent application functions need to know their location, the user will see a warning, this warning tells them that they must change their preference settings to use this feature. This warning does not allow users to make this change within the application; instead, they must enter the setup application to change their preference settings. This ensures that users are fully aware that they are authorizing the entire system to use their location information.

To let users know why they want to enable the location service, you 'd better display a warning only when the user tries to use a feature that clearly needs to know their current location. For example, when the location service is disabled, you can still use the map application. However, when they access the feature that discovers and tracks their current location, they will see a warning.

If the location service is disabled, the iPhone OS displays a warning when your application attempts to access location information for the first time. The Core Location framework provides you with a method to obtain user preference settings, so that you do not need to trigger warnings or are inappropriate. For more information about this programming interface, see the Core Location framework reference .)

With the user's preference settings, You can trigger a warning for the feature that requires location information as accurately as possible or completely eliminate the warning.

If your application cannot perform its main functions without such information, you 'd better give the user a warning as soon as they start the application. Users will not be troubled by this because they understand that the main function of an application depends on knowing their location.

If your location is not part of the basic functions of your application, you can simply restrict the features that use location information. For example, when the location service is disabled, the camera application automatically disables the function of adding users' locations to the photos they take. However, the app does not prevent users from taking photos unless they change their preference settings because "adding location information to photos" is only an additional feature, not a basic feature.

If a function requires location information to work, you must avoid executing any programming call to trigger a warning before you actually select this function. A call to obtain user preference information will not trigger a warning .) In this way, you can avoid wondering why your application wants to obtain location information when users do things that seem to require no location information.

Changes in processing direction

Users can rotate at any timeIPhoneOS devices, and they expect appropriate adjustments to the content they are browsing. In your iPhone application, be sure:

Note: For more information about the acceleration table and the acceleration table programming interface, seeIPhone applicationsProgramming Guide ). If appropriate, yourApplicationsRespond to changes in the direction of all devices.

If a part of your application user interface only displays content in one direction, this area is only applicable to this direction and does not need to respond to changes in the device direction. For example, when you select an iPod video to watch, the video is displayed horizontally regardless of the current device direction. This indicates that you want to rotate the device to better watch the video. In this example, the most important thing is that the iPod does not provide a "Rotate" button; instead, the user knows to rotate the device because the video is displayed horizontally.

Allows users to rotate devices to view images correctlyApplicationsThe user interface must be in a specific direction. Avoid creating new controls or defining new operations and tell users to rotate devices.

With one-step operations, you can change the direction to achieve smoother and faster rotation. However, if your screen layout is very complex, you can choose to perform a fade-in and fade-out conversion when the direction changes. To learn how to support one-step operations in your code, refer to the UIViewController class reference.

Users often rotate their devices horizontally to "see more. If you only scale up the screen content in proportion, you cannot meet your expectations. Instead, you should repackage text lines, and reschedule the layout of the user interface if necessary, so that more content can be filled into the screen.

Summary:IPhoneHuman-Machine Interface common task processing method 2) the content has been introduced, I hope this article will help you! Learn more about thisIphone applicationsFor more information, see the following articles.

Troubleshooting of iPhone man-machine interface Common Tasks 1)

IPhone human-machine interface common task processing method 3)

IPhone man-machine interface common task handling method 4)

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.