Xcode中的线条动画(Line animation in Xcode)
我想在xcode中做动画线条画。 我正在为iPhone开发。 我找到了一些使用CABasicAnimation的教程。 但是,当我尝试创建这样的CABasicAnimation对象时
CABasicAnimation *pathAnimation = [CABasicAnimation animationWithKeyPath:@"strokeEnd"];
我收到一个错误:使用未声明的标识符CABasicAnimation。
我是否需要一些库来使用CABasicAnimation对象? 我不确定这是怎么回事。 是否有任何教程可以解释Xcode中完整的动画过程,因为我发现的所有内容都是从定义CABasicAnimation对象开始的,没有任何解释我之前应该配置或导入的内容。
我正在使用XCode 4.4.1和Mountain Lion。 非常感谢!
I am trying to do animating line drawing in xcode. I am developing for iPhone. I found some tutorials which use CABasicAnimation. But, when I try to create an CABasicAnimation object like this
CABasicAnimation *pathAnimation = [CABasicAnimation animationWithKeyPath:@"strokeEnd"];
I get an error: use of undeclared identifier CABasicAnimation.
Do I need some library for using CABasicAnimation object? I am not sure how is this working. Is there any tutorial that explain complete process of animation in Xcode, because all I found is starting with defining CABasicAnimation object, without any explanation what should I configure or import before.
I am using XCode 4.4.1 and a Mountain Lion. Thanks a lot!
原文:https://stackoverflow.com/questions/12704362
相关文章
更多android 微信摇一摇动画效果
Cheatsheet: 2011 05.01 ~ 05.09
JSP页面显示箭头线条交互图
android仿微信的activity平滑水平切换动画
HTML5 Canvas 图像动画的实现
如何解决第三方类库无法通过armv7s编译的方法
《FLAS动画全面掌握》全彩版[PDF]
“收费”了微信,红了Line
【随笔】微信删除加载动画
最新问答
更多您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
在计算机拍照在哪里进入
使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
单页应用程序:页面重新加载(Single Page Application: page reload)
在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!