作者offname (Loafer是了好)
看板MacDev
标题Re: [问题] Interface Builder 动画问题???
时间Tue Dec 22 10:05:22 2009
※ 引述《zonble (zonble)》之铭言:
: ※ 引述《haman (...)》之铭言:
: : 想请问一下... ( 请把游标想像成手指头... )
: : 有没有什麽指令
: : 可以将UIButton做到上述的动画特效???
: : 谢谢 @ @"
: : 找了好久的说...
: [UIView beginAnimations:nil context:NULL];
: buttonA.frame = newButtonAFrame;
: buttonB.frame = newButtonBFrame;
: buttonC.frame = newButtonCFrame;
: buttonD.frame = newButtonDFrame;
: [UIView commitAnimations];
就补充一下
最基本的就是
所有animatable property都可以用
也就是zonble大说的
[UIView beginAnimations....]
[UIView commitAnimations]
括起来就都会有动画效果
这个就叫 animation block
所有的animatable property 可以参考 [1]
核心的framework就是core animation
apple官方的教学在[2]
目前core animation的书大部分是用在cocoa上
cocoa touch设计的不一样,比如上面没有CATextLayer
[3] 就是很早出,写的也还不错,最後有提到cocoa touch的不一样
不过只有一点点
玩core animation就是去用Layer
要学core animation前记得要搞懂key-value coding
之前在这边看到很多iPhone自费的课,
我看了一下[4]这门是有提到core animation
Ref:
[1] Animatable Property :
http://tinyurl.com/yzydvkm
[2] Core Animation Programming Guide :
http://tinyurl.com/yjupxla
[3] Core Animation Book :
http://tinyurl.com/y8nka48
[4] 自费课程 :
http://tinyurl.com/yev8qdl
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 61.62.95.93
1F:推 haman:谢谢啊~ 我会仔细研究研究的~ 12/22 13:55