TwitterBirdAnimation icon indicating copy to clipboard operation
TwitterBirdAnimation copied to clipboard

Having glitches when you run it in device

Open pprraasshhaanntthh opened this issue 10 years ago • 6 comments

When you run the same code in device it has glitches.....

pprraasshhaanntthh avatar Jul 05 '14 10:07 pprraasshhaanntthh

Could you tell me what glitches?

rounak avatar Jul 09 '14 12:07 rounak

It works fine in simulator....

When you try the same in device after the animation the masked image will appear for a instance

Sent from my iPhone

On 09-Jul-2014, at 6:02 pm, Rounak [email protected] wrote:

Could you tell me what glitches?

— Reply to this email directly or view it on GitHub.

pprraasshhaanntthh avatar Jul 09 '14 15:07 pprraasshhaanntthh

it doesn't work in device, I got a blue screen when I run in device

using Xcode 6 beta 5, device version: 7.1

csmx123 avatar Aug 15 '14 03:08 csmx123

any idea for the since code in objective C..... ?

Manueldjz avatar Jan 22 '15 21:01 Manueldjz

You need to add the following to prevent the glitching

keyFrameAnimation.fillMode = kCAFillModeForwards;
keyFrameAnimation.removedOnCompletion = NO;

Rich2k avatar Jun 27 '15 07:06 Rich2k

@Rich2k Why this isn't a good solution: http://ronnqvi.st/clear-animation-code/

Update: I missed that the mask/animation gets removed on completion, therefore this is mood and it should be fine to use the solution provided.

hashier avatar Jan 09 '16 08:01 hashier