objective c - Animating CALayer creates unwanted flicker glitch due to hardware constraints; need alternate ways to animate my view -


i'm trying make app animates mouth on person's face, jibjab.com, (example can found here). in order this, had layer of black bottom layer, followed layer of face mouth/chin region cropped out, , layer of mouth/chin @ top. moved mouth/chin layer down, cropped region of layer 2 exposed, giving effect of open mouth. (code can found here)

however, animation flickers, , looking @ other questions, sounds hardware limitation caused layer mouth cropped out.

the alternate approach can come manually animate black mouth region instead of having done implicitly displacement of mouth layer. creating 3 layers: 1 entire image, 1 mouth/chin, , 1 black inner mouth region. animate mouth/chin layer before, use cgpath black inner mouth region , use nstimer update path every x seconds moves in unison mouth/chin layer animation.

does have alternative approaches, or solution first problem?


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -