Objective c 删除UIPopOver许可证箭头方向
我有一个UIPopOverController,这是我的代码:Objective c 删除UIPopOver许可证箭头方向,objective-c,xcode,ipad,uipopovercontroller,Objective C,Xcode,Ipad,Uipopovercontroller,我有一个UIPopOverController,这是我的代码: [myPopOver presentPopoverFromRect:CGRectMake(20,5, 325, 600) inView:self.view permittedArrowDirections:**UIPopoverArrowDirectionLeft** animated:YES]; 但是我不需要方向箭头。有人能告诉我怎么做吗。我如何才能从中删除箭头 现在myPopOver在一行上显示4个照片库图像。有人能告诉我如何
[myPopOver presentPopoverFromRect:CGRectMake(20,5, 325, 600) inView:self.view permittedArrowDirections:**UIPopoverArrowDirectionLeft** animated:YES];
但是我不需要方向箭头。有人能告诉我怎么做吗。我如何才能从中删除箭头
现在myPopOver在一行上显示4个照片库图像。有人能告诉我如何在myPopOver控制器中在一行上排列或显示两个图像吗
当我点击ay place时,它也会被解除。我不想解除它。是否有任何属性可以避免解除uipopover
我用了密码
imagePopOver = [[UIPopoverController alloc] initWithContentViewController:self.plc.imagePickerController];
imagePopOver.popoverContentSize = CGSizeMake(150,300);
UIPopover不能没有方向箭头。如果您只需要显示一个视图,则需要创建自己的自定义UIView并将其隐藏,或者在需要时将alpha设置为0并淡入淡入。就视图布局而言,您可以设置要显示的图像视图的frame属性,以控制它们的放置位置 您可以借助下面的代码从UIPover中删除箭头
[popOverController presentPopoverFromRect:CGRectMake(200, 300, 335, 332) inView:self.view permittedArrowDirections:NO animated:YES];
我的SWIFT解决方案:
popover!.permittedArrowDirections = nil
迅速地
let alertController = UIAlertController(title: "title", message: "message", preferredStyle: .ActionSheet)
alertController.popoverPresentationController?.permittedArrowDirections = []
如何避免解雇UIpopover?有什么好处吗?这很有效。。但对我来说,它在我的弹出视图的右侧添加了一条丑陋的白线。。。这在白色背景上很难看到,但任何较暗的东西都会突出,就像一个飞翔的拇指。