core-animation Questions

3

Solved

The documentation for SCNMaterialProperty.contents states that it is an animatable property and indeed I can perform a crossfade between two colors. However I’m unable to crossfade between two imag...
Anchylose asked 20/10, 2015 at 11:9

5

Solved

In Cocoa/Touch, CAMediaTimingFunction represents four control points that specify a cubic bezier curve of a timing function. For an application I am writing I would like to be able to extract the r...
Weird asked 11/4, 2012 at 1:12

2

I was playing around with the animatableData property for a custom Shape I made but I couldn't really visualise what it does and where the system uses it. I didn't understand how the system knows w...
Valarievalda asked 12/8, 2020 at 14:23

3

A UIView has a CALayer. That's pretty sure. But both seem to provide something that means the same thing. If I'd set clipsToBounds=YES, would this also set the layer's masksToBounds=YES? Why diffe...
Archean asked 24/7, 2009 at 13:44

5

Solved

I'm setting up the following UIView animateWithDuration: method, with the intention of setting my animationOn BOOL elsewhere in the program to cancel that infinite looped repeat. I was under the im...
Allamerican asked 21/12, 2012 at 13:55

5

Solved

How can I have one CABasicAnimation to run after the other one has finishes? In other words sequentially. I've added the begin time of the second animation, however it seems that the second animati...
Sensitive asked 17/10, 2011 at 0:18

3

Solved

I have a line drawn by UIBezierPath: let line = CAShapeLayer() line.path = UIBezierPath(arcCenter: center, radius: radius, startAngle: CGFloat(114.0/180.0) * .pi, endAngle: .pi, clockwise: true...
Lianeliang asked 13/2, 2018 at 11:8

7

Solved

How can you make an NSArray full of multiple instances of a CALayer (all with the same frame, contents etc)? Background: CALayer takes a bit of overhead to create, so I would like to create a numbe...
Phreno asked 29/3, 2009 at 16:28

2

Solved

I am experimenting with iOS SDK and I have the following UIView structure: UIView UIImageView - only a background image UIImageView (with a CALayer mask) UIScrollView Label Very simple stru...
Gamboge asked 11/7, 2013 at 11:32

2

Solved

I realize that the contentsRect property of CALayer (documentation here) allows one to define how much of the layer to use for drawing, but I do not understand how the coordinate system works, I th...
Seamaid asked 12/4, 2012 at 5:15

3

Solved

Color Blended Layers Open Instruments and choose the Core Animation template located under iOS / Graphics. First, click in the Core Animation instrument's timeline to reveal the bottom pane and fin...
Binnings asked 2/8, 2013 at 3:7

3

Solved

The Instruments User Guide has this to say: Color Copied Images. Puts a cyan overlay over images that were copied by Core Animation. But that doesn't explain why an image got copied. There...
Baggywrinkle asked 10/6, 2011 at 4:38

9

Solved

I got a button and want to rotate the image inside it: self.DashButton.imageView.transform = CGAffineTransformMakeRotation(M_PI); The image is a up-arrow to down-arrow after user click it When cl...
Omniscience asked 11/2, 2015 at 6:5

3

Solved

What is a CALayer (as seen in the layer property on a UIView) and where would we use such a class?
Damoiselle asked 3/9, 2010 at 4:57

5

Solved

My goal is to understand and implement feature via Core Animation. I think it's not so hard,but unfortunately i don't know swift/Obj C and it's hard to understand native examples. Visual implem...
Lurlene asked 19/2, 2017 at 11:53

18

Solved

Is it possible to cancel a UIView animation while it is in progress? Or would I have to drop to the CA level? i.e. I've done something like this (maybe setting an end animation action too): [UIVi...
Consonant asked 16/2, 2009 at 23:19

4

Solved

I have many icons in my app and I would like to animate them in a manner similar to what happens when you try to delete applications from the iPhone's home screen. How can you do this? Additionall...
Articulation asked 12/2, 2011 at 19:29

4

Solved

I want to create sparkle effect over an image as shown in the video Sparkle Effect the only way I could think of doing it animating each particle separately using core animation, but that would be ...
Mantelpiece asked 7/5, 2013 at 11:48

10

Solved

when my app comes out of the background the animation has stopped. which is normal. but i want to restart my animation from the current state. how do i do that without my snapping all over the plac...
Pedropedrotti asked 18/5, 2011 at 9:24

8

Solved

I need to animate the insertion of a tableview header view. I want that the table rows to slide down while the header view expands its frame. So far the best result I got is by using the following ...
Debauchee asked 13/5, 2013 at 9:19

28

Solved

I'm trying to rotate a UIImageView 360 degrees, and have looked at several tutorials online. I could get none of them working, without the UIView either stopping, or jumping to a new position. Ho...
Attachment asked 23/3, 2012 at 18:53

5

Solved

I am trying to animate the position of a UIView object with CABasicAnimation on a button Tap. The object animated and moves to the 'to' position, but returns back to the original position after the...
Vassalage asked 21/7, 2017 at 11:54

11

Solved

For some reason, when I try to animate textColor, it won't work. The textColor just suddenly changes from A to B. Is it possible to animate it, for example, red to black?
Tintinnabulum asked 11/3, 2010 at 16:14

2

Solved

I am developing iphone game using coregraphics. but the speed is very slow. I could not play my game.. So, I googled a lot.. During the googling, I found the belows. CoreGraphics, CoreAnimation, O...
Sophi asked 8/12, 2010 at 22:14

1

Solved

I was trying to work on a layer-hosting View in Objective-C as per the documentation view.layer = [CALayer new]; // Create a layer-hosting view as opposed to a layer-backed view view.wantsLayer = Y...
Ate asked 11/5, 2021 at 8:4

© 2022 - 2024 — McMap. All rights reserved.