缓冲函数的简单测试-intel单cpu芯片组上电时序

清单10.1t缓冲函数的简单测试@interfacetViewControllert() @propertyt(nonatomic,tstrong)tCALayert*colorLayer; @end @implementationtViewController -t(void)viewDidLoad { tttt[supertviewDidLoad]; tttt//createtatredtlayer ttttself.colorLayert=t[CALayertlayer]; ttttself.colorLayer.framet=tCGRectMake(0,t100,t100); ttttself.colorLayer.positiont=tCGPointMake(self.view.bounds.size.width/2.0,tself.view.bounds.size.height/2.0); ttttself.colorLayer.backgroundColort=t[UIColortredColor].CGColor; tttt[self.view.layertaddSublayer:self.colorLayer]; } -t(void)touchesBegan:(NSSett*)touchestwithEvent:(UIEventt*)event { tttt//configuretthettransaction tttt[CATransactiontbegin]; tttt[CATransactiontsetAnimationDuration:1.0]; tttt[CATransactiontsetAnimationTimingFunction:[CAMediaTimingFunctiontfunctionWithName:kCAMediaTimingFunctionEaseOut]]; tttt//settthetposition ttttself.colorLayer.positiont=t[[touchestanyObject]tlocationInView:self.view]; tttt//committtransaction tttt[CATransactiontcommit]; } @end ios核心动画高级技巧231动画速度
pdf 文件大小:20.35MB