收到此语句的预期标识符的红色警告消息
CALayer = ImageView.layer;
在下面的代码中使用上面的语句
// load all the frames of our animation
ImageView.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"2a.png"],
[UIImage imageNamed:@"2b.png"],
[UIImage imageNamed:@"2c.png"],
nil];
// all frames will execute in 28 seconds
ImageView.animationDuration = 28;
// start animating
[ImageView startAnimating];
[CALayer = [ImageView.layer]];
ImageView.layer.borderWidth = 2;
ImageView.layer.borderColor = [[UIColor whiteColor]CGColor];
[ImageView.layer setMasksToBounds:YES];
[ImageView.layer setCornerRadius:15.0f];
[self.view addSubview:ImageView];
我在这里缺少什么。任何想法将不胜感激。
谢谢。