calayer
iOS 4 create pie chart from 1 UIView and background image
I know that UIViews may transforms have applied to them , some of which change the shape of the underlying layer.[详细]
2023-04-11 12:49 分类:问答CABasicAnimation rotate returns to original position
i\'m rotating a CALayer using CABasicAnimation and works fine. The problem is, when I try to rotate the same layer, it returns back to its original position before it will rotate. My expected output i[详细]
2023-04-11 03:30 分类:问答UIImageView's shadow gets bigger than intended when shadowPath is set
CGRect rect = biggerImageView.bounds; if([biggerImageView.layer respondsToSelector:@selector(setShadowColor:)])[详细]
2023-04-11 00:34 分类:问答CALayer anchorPoint doesn't work as expected with CGAffineTransform
I have a CALayer, containing few sublayers (CATextLayers). I\'m applying transformations on the CALayer on some usual gestures (zoom, pan).[详细]
2023-04-10 09:27 分类:问答Two questions about CALayer
with [myLayer setName:@\"layer_1\"] I set the name of a layer. But how can I get it from another method? Is there s开发者_如何学Goomething like [self.view.layer.sublayers getLayerByName:@\"layer_1\"][详细]
2023-04-10 03:12 分类:问答CAlayer transform on sublayers flickers with gestures (ipad)
I have a CALayer that contains few other subLayers (CATextLayer actually) I want to apply some transformation on that layer when user do usual gesture on the ipad but it doesn\'t seem to be working p[详细]
2023-04-09 16:15 分类:问答Layer-backed OpenGLView redraws only if window is resized
I have a window with a main view of type NSView and a subview which is a subclass of NSOpenGLView whose name is CustomOpenGLView.[详细]
2023-04-09 07:29 分类:问答Center [UIColor colorWithPatternImage]?
I couldn\'t find anything on how you can center the \'image\' when you use (maybe you can\'t): [self setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@\"background\"]]];[详细]
2023-04-09 06:09 分类:问答Question about anchor point
So I have been playing around with animations lately and I\'ve come across the anchor point. I understand that the anchor point is (0.5, 0.5) by default, which is the middle of the view, and you can c[详细]
2023-04-08 14:25 分类:问答Remove layer from renderInContext
I use this code to make a screenshot, CGFloat breed = 768; CGFloat hoogte = 975; CGSize afmeting = CGSizeMake(breed, hoogte);[详细]
2023-04-07 16:37 分类:问答