1
我有下面的代码(见下文),如果我编译它是因为我得到“内部编译器错误:总线错误”。如果我注释掉最后一个ImageOne.transform,一切正常。如果文件以.m结尾,那么它会编译好,如果我将其更改为.mm,那么它有问题。有任何想法吗?内部编译器错误:总线错误
[UIView animateWithDuration:duration1 delay:delay options:UIViewAnimationCurveEaseIn animations:^{
ImageOne.transform = CGAffineTransformMakeScale(scale1, scale1);
ImageOne.alpha = 1.0f;
}
completion:^(BOOL finished){
[UIView animateWithDuration:SecondDuration delay:SecondDelay options:UIViewAnimationCurveEaseOut animations:^{
ImageOne.transform = CGAffineTransformMakeScale(scale2, scale2);
}
completion:^(BOOL finished){
[UIView animateWithDuration:SecondDuration delay:SecondDelay options:UIViewAnimationCurveEaseOut animations:^{
ImageOne.transform = CGAffineTransformMakeScale(scale1, scale1); //results in bus error, i think its due to nesting
}
completion:nil];
}];
}];
}
仍然没有解释编译器崩溃... – 2011-03-29 22:56:06