I'm trying to implement popover like that:
我花了很多时间尝试定制UIPopoverController
and UIPopoverBackgroundView
。据我了解,使用弹出窗口的公共 API 来完成我的任务是不可能的。
有可能的:
- 要使用具有固定角和可拉伸中心的小图像,在这种情况下,我会在侧面有拉伸条纹。而且我还会在箭头“下方”显示图像。
-
Fill border with stripes, but in that case I don't have rounded corners. I also have annoying inner shadow inside:
backgroundImageView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"airmail_pattern"]];
有没有其他方法可以重用标准弹出窗口,或者我必须仅使用 UIViewController 来实现该行为?
Cheers.
WEPopover 似乎可以做你想做的事。它具有自定义背景属性,我想它可以用于此目的。 (这个我还没用过)
https://github.com/werner77/WEPopover https://github.com/werner77/WEPopover
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)