Re: [問題] Interface Builder 動畫問題???
※ 引述《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
推
12/22 13:55, , 1F
12/22 13:55, 1F
討論串 (同標題文章)