<span id="Label3"></p><p><p><span style="font-size:24px; color:#666666">Pop-up box</span></p></p><p><p><br></p></p><p><p>A popup is a temporary interface that appears when people click on a control or an area on the Screen.</p></p><p><p><br></p></p><p style="text-align:center"><p style="text-align:center"><br></p></p><p><p><br></p></p><p><p><span style="color:#666666">API NOTE</span></p></p><p><p>In iOS 8 and later systems, you can use Uipopoverpresentationcontroller to display a popup box. <span style="color:#666666">Uipopoverpresentationcontroller</span> defines a protocol that allows you to adjust the display style of your pop-up content to fit the current display Environment. For example, in a level-normal environment, your content can be displayed in a popup box, and your content can be displayed in a full-screen modal view in a horizontally compact Environment.</p></p><p><p><br></p></p><p><p>A popup box:</p></p><p><p></p></p> <ul> <ul> <li>is a self-contained modal view</li> <li>In a horizontal general environment, an arrow appears pointing to the point at which it appears</li> <li>Blurred content behind a translucent background display</li> <li>Can contain a wide range of objects and views, such as:</li> </ul> </ul><span style="white-space:pre"><span style="white-space:pre"></span></span>lists, pictures, maps, text, Web pages, or Custom views<span style="white-space:pre"><span style="white-space:pre"></span></span>Navigation bar, toolbar, or tab bar<span style="white-space:pre"><span style="white-space:pre"></span></span>Controls or objects that interact with objects in the current app view<span style="white-space:pre"><span style="white-space:pre"></span></span>(by default, the list view, navigation bar, and toolbar in the pop-up box use a translucent background to show the blur layer of the popup box.) )<br>In a horizontal general environment, the action form is always displayed in a pop-up box.<br>Use pop-up boxes to display additional information or a series of elements related to the object of interest or Selection.<span style="color:#666666"><span style="color:#666666"><br></span></span><span style="color:#666666"><span style="color:#666666">NOTE</span></span>This guide contains the UI and user experience for pop-up boxes that appear in a horizontal general Environment. If you are displaying a pop-up box in a full-screen horizontal environment, view modal view for a guide to other Full-screen modal views.<br>Do not provide a "dismiss popup" Button. It should be turned off automatically when the display of the popup box is not necessary. Consider the following plot to determine when the popup box is unnecessary:<br><p><p></p></p> <table border="1" width="700" cellspacing="1" cellpadding="1"> <tbody> <tr> <th scope="col">If the popup box</th> <th scope="col">do this</th> </tr> </tbody> <tbody> <tr> <td>Provides options that affect the main view, but does not implement the viewer</td> <td>When people make a choice or when they click anywhere other than the popup box, include the control that displays the popup box, and close the popup box as soon as Possible.</td> </tr> <tr> <td>Implementing the Observer</td> <td>When people click anywhere outside of the popup box, including the control that displays the popup, the popup box is Closed.<br>In this case, do not close the popup as soon as people make a choice, because they may want to make additional choices or change the properties of the current Selection.</td> </tr> <tr> <td>Complete a task</td> <td>When people finish or cancel a task by clicking the button in the popup box, such as complete or cancel, the popup box is Closed.<br>In this case, you may not want to close the popup box when people click outside the popup box, because people finish--or give up--the task may be Important. or, When people click outside the pop-up box, they save their input, just as they did when they clicked Done.</td> </tr> </tbody> </table><br><p><p></p></p><p><p><strong>generally, When people click outside the pop-up box, they save the User's Work. </strong>Not all pop-up boxes require explicit exit, so people may mistakenly shut it down. Discard People's Work only when people click the Cancel Button.</p></p><p><p><br></p></p><p><p><strong>make the Popover's button as direct as possible to the element that displays it. </strong>doing so helps people remember the source of the popup and the tasks or objects Involved.</p></p><p><p><br></p></p><p><p><strong>Make sure that people can use pop-up boxes without seeing the app content behind Them. </strong>The popup box blurs the content behind it, and people can't drag the popup to another Location.</p></p><p><p><br></p></p><p><p><strong>Make sure that there is only one pop-up box on the screen at the same time. </strong>you should not display more than one pop-up box at the same time (or customize the appearance and behavior of a view that resembles a pop-up box). In particular, you should not simultaneously show a talk out of a cascade or level pop-up box appearing from Another.</p></p><p><p><br></p></p><p><p><strong>do not display the modal view at the top of the popup box. </strong>In addition to the warning box, it should not appear at the top of the popup box.</p></p><p><p><br></p></p><p><p><strong>if possible, allow people to close a popup box and open a new popup box with a single click. </strong>This behavior is appropriate when there are several different bar buttons that open the popup box, because it allows people to avoid a lot of extra clicks.</p></p><p><p><br></p></p><p><p><strong>do not use a pop-up box that is too large. Pop-up boxes should not occupy the full Screen. </strong>it should just be able to show its content and point to where it appears. The height of the popup box is not fixed, so you can use it to display a long list of columns. In general, however, you should try to avoid scrolling through the popup box to complete the Task. Note that the system may adjust the height and width of the popover to fit the Screen.</p></p><p><p><br></p></p><p><p><strong>use standard UI controls and views within a popup box. </strong>in general, pop-up boxes use standard controls and views to look better and easier for users to Understand.</p></p><p><p><br></p></p><p><p><strong>Make sure that the custom popup box looks like a popup box. </strong>even though you can easily customize many of the visual parts of the PopOver by using the Uipopoverbackgroundview api, do not create a design that the user does not recognize as a popup box. If you change the appearance of too many pop-up boxes, users cannot rely on their previous experience to help them understand how to use it in your app.</p></p><p><p><br></p></p><p><p><strong>when the popover is still visible, change its size to be cautious. </strong>you might want to change the size of the popover when you use it to display the most small and extended views of the same Information. When you resize a visible popover, it's often a good idea to use animations to represent changes, because it doesn't give people the impression of a new pop-up box instead of the old pop-up box.</p></p><p><p><br></p></p><p><p><br></p></p><p><p></p></p>This article is translated from the official Apple development document to view the integration Set: https://github.com/Cloudox/iOS-Human-Interface-Guidelines All rights reserved: Http://blog.csdn.net/cloudox_<br><p><p></p></p><p><p>"iOS Human Interface Guidelines"--popover</p></p></span>
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