绘制蓝色“未读取点”在iPhone邮件应用程序 [英] Drawing the blue "unread dot" on the iPhone Mail app

查看:165
本文介绍了绘制蓝色“未读取点”在iPhone邮件应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁有一个例子,如何绘制蓝色的未读点在苹果的邮件应用程序中使用?这一个特定:

Does anyone have an example of how to draw the blue "unread dot" used in Apple's Mail App? This one in specific:

使用Quartz2d绘制椭圆是直接的,但是阴影+渐变的微妙使用使得这看起来真的是3d。

Drawing an ellipse is straight forward with Quartz2d, but the subtle use of shadows+gradients make this look really 3d.

推荐答案

我认为邮件中的蓝点实际上是一个图像;我想象,blting一个图像将比绘制一个渐变更快。

I think the blue dot in mail is actually an image; I would imagine that blitting an image would be faster than drawing a gradient.

这篇关于绘制蓝色“未读取点”在iPhone邮件应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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