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
Post a Comment