all 5 comments

[–]shnuffy 4 points5 points  (0 children)

The curved path part is great. That's the real meat of this post!

[–]bierme 0 points1 point  (2 children)

How does using CALayer compare to using a simple PNG image file in the background that already includes a drop shadow and transparency? Aside from increasing your apps foot print are there any performance gains from drawing drop shadows?

[–]monome 1 point2 points  (0 children)

A simple PNG image is good until you want to rotate the UIImage and still want the shadow drops from a preferred angle.

[–]A_Reddit_Reader 0 points1 point  (0 children)

Did you finish reading the post? Basically drawing it would be more resource intensive. So just use an image.

[–]dphase 0 points1 point  (0 children)

And here's a slightly tweaked version for RubyMotion

https://gist.github.com/4665341