iPhone-Development - UIView beginAnimations之后的EXC_BAD_ACCESS - > didStopSelector

时间:2011-10-03 06:53:44

标签: iphone exception exc-bad-access

[UIView beginAnimations:nil context:nil];

[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(scrollViewScrolled)];

[scrollView setContentOffset:scrollToPosition];

[UIView commitAnimations];

//////////////////////////

- (void)scrollViewScrolled {
    [self putScreenShotToScrollView];
    [self loadImageStack];
}

//////////////////////////

- (void)putScreenShotToScrollView {
    UIImageView *scrollViewScreenShotView;

    float scrollViewScreenShotPositionX;
    float scrollViewScreenShotPositionY;
    CGRect scrollViewScreenShotFrame;

    scrollViewScreenShotView = [[UIImageView alloc] initWithImage:usedImageStack.screenShot];
    // So, always when the app try to access the usedImageStack.screenShot the exception EXC_BAD_ACCES determines the app
    // usedImageStack and the property screenShot have an address, so not 0x0
}

你知道这是什么问题吗?

谢谢!

0 个答案:

没有答案