I have a CAEmitterLayer animated along a bezier path (closed form, like an '8', out of four control points) with a CAKeyframeAnimation. Now I want to control the animation by a slide of a touch-finger along (but not necessarily on) the path. How is this possible and is this even possible?
How to control CAKeyframeAnimation with touch gesture?
579 Views Asked by headkit At
1
There are 1 best solutions below
Related Questions in OBJECTIVE-C
- How do I customize NSOutlineView to have border color?
- UIWebView Screen Fitting Issue
- How to hide "Now playing url" in control center
- CloudKit: Preventing Duplicate Records
- Image and Text locations in UIButton
- setting OpenGL version in objective-C
- Setup code for xibs in iOS. -awakFromNb:
- realm db, get parent link of object
- CFBundleDocumentType is not working in myproject-Info.plist file
- UIPopoverPresentationController not rendering properly
- Using Storyboard Reference
- Pass Data between two view controllers using 'Delegation' : Objective-C
- Unexpected CALayer Vertical Flipping on 3D Rotation 'Bounce'
- Setting View orientation to portrait is ignored
- UITextField append / between dates while enforcing character limit
Related Questions in COCOA-TOUCH
- How to generate request format for WCF web service method for Mac and iPhone
- Application crashes when move from main view controller to another view controller, asks call a stack
- What sort of assets does PHAssetMediaTypeAudio fetch?
- Handoff icon not disappearing from the phone
- How can I use AutoLayout to place view exactly above other?
- How display notification on IOS 8 like in google maps in navigation time
- How can I modally present a UIViewController on another Storyboard that's embedded in a UINavigationController?
- Imports and includes in header files - when is it okay?
- How to listen to changes in Camera authorization status?
- What types/sizes of images do you need when using UIImage full screen?
- Change position of UIImageView when Animating in NSArray
- UITableViewAutomaticDimension + AFNetworking
- Get name of img from for loop
- Multiple CGContextRefs?
- How do i change for background colors or themes for all my screens while clicking one button in setting page for my app in ios, Using objectve c
Related Questions in PATH
- formatting path string in javascript
- Simplexml get path from variable
- Azure Web App PATH Variable Modification
- In Android, would it be possible to open a file in the 'values' folder and to read its content?
- Using paths bonded to a XCode project to be shared
- How would I be able to use a file in visual studio project on any computer?
- How to add directories to Cygwin gcc default search path
- Joomla css path incorrect
- R CMD recognize only some commands
- Generate TCPDF output to a shared drive folder
- How to get the exe path in nsis script?
- Issues with relative/absolute path
- relative path to .Exe
- Path of the current, parents and root directory
- JOptionPane Message with File Path
Related Questions in CORE-ANIMATION
- Unexpected CALayer Vertical Flipping on 3D Rotation 'Bounce'
- iOS Apply CATransform3D on every frame
- CALayer, CAConstraint & Disabling the Animation
- CAGroupAnimation does not show animations. Animations work fine when added separately
- UIView.animateWithDuration's Delay does not seem to delay
- CoreAnimation uncommitted CATranaction NSComboBox
- Opening and closing form animation
- CGAffineTransforms performance is really slow on iOS 7
- iOS Animation: CADisplayLink vs CAShapeLayer
- How does CALayer geometryFlipped behave exactly?
- Circular Progress Bars with Indicator
- How To Apply Complex CALayer Transform Changes?
- How to rotate image based on angle in Swift?
- Flickering in CABasicAnimation for rotation
- how can I use polymer core-animated-pages events?
Related Questions in CAEMITTERLAYER
- iOS - CAEmitterCell using Swift
- How to get a CAEmitterLayer from Canvas
- How to get a smaller tail with a bunch of CAEmitterCells (fade out and/or scale down)
- how to get the emitter position of an animated CAEmitterLayer/Cell?
- CAEmitterLayer how to emit for a short time repeatedly
- How to control CAKeyframeAnimation with touch gesture?
- EmitterCells not showing in CAEmitterLayer
- Aligning four CAEmitterLayer() on each side of view, pointing inward
- CAEmitterLayer Stops Displaying
- How to make CAEmitterCell fade-in and then fade-out?
- CAEmitterLayer not timing correctly with CACurrentMediaTime() and sometimes not showing at all
- Method sent to CAEmitterLayer but goes to CALayer
- iOS: capturing CAEmitterLayer particles on screen
- CAEmitterLayer not rendering when -renderInContext: of superlayer is called
- CAEmitterLayer negative beginTime possible?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Make a
CGpoint click;variable to remember your initial "drag" point, then create a localNSEventhandler..."yourDelta" is the offset of that initial point from the current location... you could also achieve similar results with scroll events, by monitoring
NSEventScrollWheelMask... and looking at thee.deltaXande.deltaYvalues.Edit: I'm not as familiar with event handling on iOS.. but the same technique could be applied with normal event handlers... ie.
As to "seeking" your animation.. One possible way is to simply
[layer addAnimation:theNewAnimation], using your previoustoValue's, but instead of basing thefromValue's of 0, or your modellayer... use yourlayer.presentationLayervalues instead? It is hard to say without seeing the full content of yourCAKeyframeAnimation.