ios - how to prevent popover from overlapping the navigation toolbar? -
in ipad app, present popover tableview editing style insert control.
how can prevent popover overlapping navigation bar when anchor in high position? sadly, i'm not allowed post image.
the cgrect in code seems move popover anchor , size, not relation between them. (or: anchor on popover frame)
any hint appreciated!
in commiteditingstyle if uitableviewcelleditingstyleinsert:
popovercontroller.popovercontentsize = cgsizemake(320.0, 400.0); cgrect rect = cgrectmake(cell.bounds.origin.x+200, cell.bounds.origin.y+10, 50, 30); [popovercontroller presentpopoverfromrect:rect inview:cell permittedarrowdirections:uipopoverarrowdirectionleft animated:yes]; }
Comments
Post a Comment