Getting red warning message that expected identifier for this statement
CALayer = ImageView.layer;
Using the above statement in the below code
// 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];
What i m missing here. Any ideas will be appreciated.
Thanks.
Should be something like:
Because you can’t just assign to the class itself, you need an object of that class.
Also you don’t need the brackets for assignment.