删除UIPopoverController创建的内部阴影 [英] Remove the inner shadow that UIPopoverController creates
问题描述
我创建了iOS提供的popover的自定义布局。我已经子类化了UIPopoverBackgroundView并让它正确绘制我的popover的背景。我的问题是,现在UIPopoverController在popover上创建一个内部阴影影响popover的contentViewController。我想删除这个内部阴影,所以只显示我的contentViewController的内容。
I am creating a custom layout of the popover that iOS provides. I have subclassed the UIPopoverBackgroundView and got it to draw the background for my popover correctly. My problem is now that UIPopoverController creates an inner shadow on the popover affecting the contentViewController of the popover. I want to remove this inner shadow, so only the content of my contentViewController is displayed.
这是popover当前的样子,用UILabel来演示对contentViewController。
This is how the popover currently looks, with a UILabel to demonstrate the effect on the contentViewController.
有没有办法删除这个内部阴影?
Is there any way to remove this inner shadow?
推荐答案
ios6.0与以下调用:
Support for this was added in ios6.0 with the following call:
+(BOOL)wantsDefaultContentAppearance
这篇关于删除UIPopoverController创建的内部阴影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!