calayer
iphone: adding CALayer as Sublayer to UIButton's Layer causes EXC_BAD_ACCESS
hey people, I try to add a nice gradient to a UIButtonTypeRoundedRect. the following code is implemented in the[详细]
2023-03-07 20:05 分类:问答iOS: self.view.bounds does not fill the whole window
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:[详细]
2023-03-07 18:57 分类:问答Rounded UIScrollView Performance
This runs great on iPhone 4 and 3GS: scrollView.layer.cornerRadius = 11; scrollView.layer.masksToBounds = YES;[详细]
2023-03-06 17:04 分类:问答How to add bottom shadow to table cell with dynamic height?
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[详细]
2023-03-06 11:40 分类:问答replace CALayer
I am following this answer to create a gradient using a CALayer. The key comman开发者_StackOverflow中文版d is[详细]
2023-03-05 17:30 分类:问答Is there a way to set the number of animation steps for CABasicAnimation?
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[详细]
2023-03-05 14:37 分类:问答Can I set layer.transform on an NSView with subviews?
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.[详细]
2023-03-05 12:51 分类:问答Animate truncation of CATextLayer
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[详细]
2023-03-03 11:43 分类:问答Is there an issue with updating a CALayer position while the layer is paused?
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[详细]
2023-03-03 06:45 分类:问答CALayer alpha mask not working
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[详细]
2023-03-03 03:41 分类:问答