當我構建應用程序,我得到的UITouch行警告說應用程序崩潰時觸及
不兼容的對象-C初始化「結構的NSArray *」,預期「結構UITouch *」
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *myTouch = [[event allTouches] allObjects];
player.center = [myTouch locationInView:self.view];
}
當我運行應用程序,它一切都開始良好,直到我點擊播放器,然後它關閉。誰能幫忙?
很好的問題! – Luke