问题
Does anyone have an example of how to draw the blue "unread dot" used in Apple's Mail App? This one in specific:
Drawing an ellipse is straight forward with Quartz2d, but the subtle use of shadows+gradients make this look really 3d.
回答1:
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.
回答2:
If you decide to go with a resource there is an app called UIKit-Artwork-Extractor that allows you to rip all the resources from all the IOS apps you have installed
https://github.com/0xced/UIKit-Artwork-Extractor
来源:https://stackoverflow.com/questions/875035/drawing-the-blue-unread-dot-on-the-iphone-mail-app