0

こんにちは、実行すると終了し、ブレークポイントがあると言うコードがあります

- (void)checkCollision{
    if(CGRectIntersectsRect(penny.frame, hand.frame))
    {
        [randomMain invalidate];
        [startButton setHidden:NO];

        pos= CGPointMake(0.0, 0.0);

        CGRect frame = [penny frame];
        frame.origin.x=137.0f;
        frame.origin.y=326.0;
        [penny setFrame:frame];     (the breakpoint is here)

        CGRect frame2 = [hand frame];
        frame2.origin.x=137.0f;
        frame2.origin.y=20.0;
        [hand setFrame:frame2];

        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"You Lose" message:[NSString stringWithFormat:@"He got the penny!"] delegate:nil cancelButtonTitle:@"Dismiss" otherButtonTitles:nil];
        [alert show];
        [alert release];
    }
}

何か案は?ずさんなフォーマットで申し訳ありません。ウェブサイトは初めてです、ありがとう!

4

1 に答える 1

0

ブレークポイントが提示されたコードと同期しなくなることがあります。ブレークポイント ウィンドウに移動してみてください (Command + 6 または View->Navigators->Show Breakpoint Navigator.

そのナビゲーターに、アクティブなブレークポイントが表示される場合があります。誤ったブレークポイントが見つかった場合は、リストから削除します。それ以外の場合は、すべてのブレークポイントを削除することをお勧めします。

于 2013-09-16T03:16:29.793 に答える