hey people, I try to add a nice gradient to a UIButtonTypeRoundedRect. the following code is implemented in the
I am doing some simple testing of adding CALayer to a UIView. In my main controller class of an iPhone 4 app, I implemented the viewDidLoad method as such:
This runs great on iPhone 4 and 3GS: scrollView.layer.cornerRadius = 11; scrollView.layer.masksToBounds = YES;
I am about to implement bottom shadow for table cells. However my table cells have dynamic heights and each cell can be toggled to expand or shrink. I would like to have the bottom sha开发者_开发问答d
I am following this answer to create a gradient using a CALayer. The key comman开发者_StackOverflow中文版d is
I want to create an animation that interpolates some property for 2 seconds and only 20 frames (presentation layers) have to be generated by the C开发者_C百科oreAnimation framework. I know how to prov
I\'d like to have an NSView with subviews (images, text, etc.) and then apply a 3d transform to it using myView.layer.transform = myTransform.
I have a CALayer with a CATextLayer sublayer. When I apply a transform or otherwise resize the CALayer, I need the CATextLayer to resize within its parent\'s bounds. Upon resize, the CATextLayer also
Is there an issue with reading the presentation position while it\'s paused? I\'m trying to pause and resume a CALayer. Once the CALayer is paused, I开发者_运维问答 want to update the layer\'s positi
I\'m trying to create a simple example of drawing an image to a layer, and then setting that layer\'s alpha mask.I added the code below to my sample app\'s viewDidLoad.without setting the mask, i can