2010-01-10 30 views
0

我目前正在開發一個帶有Core Animation的小應用程序,以獲得關於框架如何工作的一些知識。 現在我想知道如何能夠在特定的子圖層上動態地執行轉換。我原以爲它會像[somelayer sublayers][0].transform = CATransform3DMake.........;一樣簡單,但事實證明情況並非如此。 所以我的問題是:如何更改Core Animation Framework內的子圖層?在Core Animation中檢索子圖層

回答

0

我猜你的意思是[[somelayer sublayers] objectAtIndex:0].transform = CATransform3DMake ...

+0

哎喲,是的,這就是我一直在尋找的。 我完全忽略了「objectAtIndex:」。 謝謝! – StevenR 2010-01-10 16:46:49

相關問題