jjzjj

uipresentationcontroller

全部标签

ios - UIPresentationController - 演示 View 大小?

我正在使用UIPresentationController,但我不知道如何让它以我想要的方式显示。我正在编辑frameOfPresentedViewInContainerView()函数,我需要返回框架(一个CGRect)来显示我的内容。我遵循的教程使用CGRectInsert(self.containerView.bounds,50,50),它使窗口居中,边框为50px。如果我返回self.containerView.bounds本身,View会占据整个屏幕。我希望叠加View是父View的宽度(因此,self.containerView.bounds.width),但我希望高度是显

ios - 演示后在 UIPresentationController 中调整呈现 View 的框架

我正在使用自定义演示Controller制作类似于UIAlertView的内容。我希望它在键盘显示时向上移动。在UIKeyboardWillShowNotification处理程序中,我获取新的键盘框架,将其存储在一个属性中,然后调用:self.presentedView.frame=[wselfframeOfPresentedViewInContainerView];在我的-frameOfPresentedViewInContainerView实现中,我考虑了当前的键盘高度。这很完美,但是直接修改self.presentedView的框架感觉有点脏。我尝试使用setNeedsLayo

ios - Swift - UITableView editActionsForRowAtIndexPath 在单击编辑时打开 UIPresentationController

您好,当向左滑动被触发并单击Edit时,有什么方法可以打开UIPresentationController吗?functableView(tableView:UITableView,editActionsForRowAtIndexPathindexPath:NSIndexPath)->[UITableViewRowAction]?{letdelete=....letedit=UITableViewRowAction(style:.Normal,title:"Edit"){action,indexin//OPENUIPresentationControllerHERE}return[de