calayer
How to apply shadow to a video in an iOS app
I tried to apply a shadow to a video in this way: moviePlayer.view.frame = CGRectMake(83, 123, 629, 424);[详细]
2023-04-03 09:42 分类:问答CALayer vs CGContext, which is a better design approach?
I have been doing some experimenting with iOS drawing. To do a practical exercise I wrote a BarChart component. The following is the class diagram (well, I wasnt allowed to upload images) so let me wr[详细]
2023-04-02 16:44 分类:问答Rotating UIView including the CALayer bounds AND the CALayer frame
I want to rotate my \"containerView\" UIView (semi-transparent red box in the screenshot) using UIDeviceOrientationDidChangeNotification and then later (after it rotates) add sublayers to the view\'s[详细]
2023-04-01 02:57 分类:问答OpenGL drawing messed up when I resize CAEAGLLayer
I\'m trying to implement some basic OpenGL in my app, and in doing so, I used the GLPaint example included with the SDK as a jumping off point.My code works fine on its own, but once I move everything[详细]
2023-03-31 21:20 分类:问答iOS / Core-Animation: 12 overlapping cards in a circle
I am trying to arrange 12 objects in the circle so that each ov开发者_如何转开发erlaps its anticlockwise neighbour.[详细]
2023-03-31 14:07 分类:问答UIImageView's on a UIView Layer, wrong frame output
I am trying to combine 2 UIImageViews and save them as 1. The top-most image is a static \"frame\", and the lower image is rotatable / scalable.[详细]
2023-03-31 11:03 分类:问答Snapping with CALayers
I am moving a few CALayers using the -mouseDragged method, and now I would like to \"snap\" them when they are sufficiently near (or when they are overlapping just a little bit).[详细]
2023-03-31 01:53 分类:问答Objective C - CAGradientLayer covers the text in UILabel?
I am trying to add a gradient layet to my UILabel for some reasons the CAGradientLayer covers my text.[详细]
2023-03-30 21:21 分类:问答uiwebview's displacement value after focus & keyboard appearance
I have UIWebView among with other UI elements on the screen. After I click on textfield inside a webview, whole webview is moving up (it is moving webview content, not a webview containter, right?). I[详细]
2023-03-30 19:55 分类:问答CALayer shadows offset too much with renderInContext to a smaller context
I have a UIView, with UIViews as subviews. Each of these sub-UIViews draws an image using drawRect, and may have a shadow using CALayer shadowOffset, shadowRadius, shadowOpacity.[详细]
2023-03-30 18:20 分类:问答