如何制作圆边覆盖(iPhone SDK)? [英] How to make an overlay with round edges (iPhone SDK)?

查看:136
本文介绍了如何制作圆边覆盖(iPhone SDK)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚收到很多关于制作叠加视图问题的好评。
我有没有办法在iPhone SDK上制作叠加视图?

I've just received a lot of good responses to the question about making overlay views. Is there a way that I can make an overlay view on the iPhone SDK?

我的另一个问题是如何使叠加视图具有圆形像Skype iPhone应用程序或Phone.app中的边缘。

Another question I have is how to make an overlay view have round edges like in the Skype iPhone app or in the Phone.app.

谢谢。

推荐答案

您可以使用这些辅助函数然后屏蔽/剪辑到结果 CGPath

You can use these helper functions and then mask/clip to the resulting CGPath:

http://fabian-kreiser.com/index.php?id=1135350598525812781

或者使用 view.layer.cornerRadius ,如如何在iPhone上创建一个圆形的UILabel?

这篇关于如何制作圆边覆盖(iPhone SDK)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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