ios - UIPopoverController presentPopoverFromBarButtonItem allows to press navigation button twice -


i using code below presenting uipopovercontroller view:

[popover presentpopoverfrombarbuttonitem:sender permittedarrowdirections:uipopoverarrowdirectionup animated:yes]; 

so works good, still able press uibarbuttonitem sender in code above.

so need disable button when popover shown self or there solution?

use method instead, toolbar view containing sender:

[popover presentpopoverfromrect:sender.frame inview:toolbar permittedarrowdirections:uipopoverarrowdirectionany animated:yes]; 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -