IOS: popover

Source: Internet
Author: User

Basic Principles of popoverHttp://blog.csdn.net/chun799/article/details/6988359

This principle also applies to open source popover "wepover ".

Basic usage:

Http://www.raywenderlich.com/1056/ipad-for-iphone-developers-101-uipopovercontroller-tutorial

Http://blog.csdn.net/lingedeng/article/details/6781385

Http://hi.baidu.com/bunsman/blog/item/3eca7a01101fcb19738da597.html

Http://xyyk.iteye.com/blog/838038

Note:

1. To display popovers without arrows, set the permittedarrowdirections parameter to 0.

2. Set the size of the view displayed by popover. Add the following code to the package in didload of the View Controller of popover:

Self. contentsizeforviewinpopover = cgsizemake (320,250 );

In addition to setting the window size in View Controller of popover, you can also set the popovercontentsize attribute of popover controller to set the window size.

The following is the official documentation of contentsizeforviewinpopover and contentsizeforviewinpopover (ref link)

Contentsizeforviewinpopover

The size of the View Controller's view while displayed in A popover.

This property contains the desired size for the View Controller
When it is displayed in A popover. By default, the width is set to 320 points and the height is set to 1100 points. You can change these values as needed.

The recommended width for popovers is 320 points. If needed, you can return a width value as large as600 points, but doing so is not recommended.

If
Popover controller displaying the View Controller sets itspopoverContentSizeProperty,
The popover controller overrides the values set in the View Controller'scontentSizeForViewInPopoverProperty
.

3. if your popover is a navigation controller, and the contentsizeforviewinpopover of the first view and the second view has different heights, switch from a short view to a long view, the height of the popover will be extended, but the height of the popover will not be shortened from the view with a long height to the view with a short height.

Solution ):

Http://stackoverflow.com/questions/2738887/how-to-change-height-of-the-popovercontroller-when-one-of-its-viewcontrollers-ge

Http://stackoverflow.com/questions/2752394/popover-with-embedded-navigation-controller-doesnt-respect-size-on-back-nav

Http://stackoverflow.com/questions/7642958/uipopovercontroller-height-grows-never-shrinks

So try not to change the height of popover

A popover https://github.com/werner77/WEPopover for iPhone

Another popover https://github.com/50pixels/FPPopover

Http://www.zhixing123.cn/jiaocheng/UIPopoverController.html

Http://afantihust.blog.51cto.com/2231549/533940

When popover rejects an app:

* Multiple povers cannot appear simultaneously.

Http://stackoverflow.com/questions/8922615/ipad-how-to-handle-multiple-popovers-regarding-human-guidelines

* The popover must be facing the elements that pop up.

Http://www.cocoachina.com/bbs/read.php? Tid = 22000

* The popover should be able to dismiss it at any time by clicking somewhere out of its range. In other words, do not use the modal method.

* The popover should not be too large, and the width should not exceed 600;

* The alertview should also be pover.

Http://www.cntxk.com/CataNews/35/info666.html


Popover cool effect

Popover menu (not free)

Http://www.binpress.com/app/popover-menu-for-ios/604

Http://www.youtube.com/watch? Feature = endscreen & V = 8kv68eru9ui & Nr = 1

Popover Effect

Http://www.youtube.com/watch? V = gxcuket5rwg

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.