删除UIPopoverController创建的内部阴影 [英] Remove the inner shadow that UIPopoverController creates

查看:915
本文介绍了删除UIPopoverController创建的内部阴影的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了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

链接到文档:
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIPopoverBackgroundView_class/Reference/Reference.html

这篇关于删除UIPopoverController创建的内部阴影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆