Possible Duplicate:
using completion with animateWithDuration causes exc_bad_access
I am really confused here.
The following code works fine
[UIView animateWithDuration:0.4f
animations:^{
flipView.layer.transform = CATransform3DMakeRotation(M_PI_2,1.0,0.0,0.0);
}
completion:nil
];
but this causes a EXEC_BAD_ACCESS error
[UIView animateWithDuration:0.4f
animations:^{
flipView.layer.transform = CATransform3DMakeRotation(M_PI_2,1.0,0.0,0.0);
}
completion:^(BOOL finished) {}
];
Any idea why this would be? I have tried creating a new project with just a view and the same issue is happening.